What's the VBA code to return the number of characters between specific characters? For example, I need to find the number of characters between two hyphens - "-xxxxxx-".
Working backwards, this is how you would accomplish it:
Use the Len() function to get the length of a string
Use the Mid() function to get a substring of another string
Use the Instr() function to determine the position of certain characters in a string
Sorry, I'm a rookie. Instr only gets me the position of the first hyphen. Do I need to progressively dissect the string to get the count to the second one?