OK I'm definitely moving well out of my depth here now, but I can't find any significantly useful info online to help me out.
I have a dynamic list of data that includes headings and subheadings. I need to display just the headings on another worksheet and I need to strip the first section of the head off and just display the second half.
The headings are in the following format:
TEAM A1A - Team Name
The word team is obviously the same length for all, but the A1A code can be 2 or 3 characters long, and can be a mix of letters and numbers. The dash is always the same, but the team name could be 2, 3, or 4 worlds long. So, using a function like MID() doesn't work (not easily anyway).
I have been looking at Regular Expressions, and I think using something like rePostMatch could help me to strip out the team name, but I have no idea how to get this to work in a function and frankly I'm getting totally confused between RegExp and regExpr in vbscript. Any help GREATLY appreciated!
I have a dynamic list of data that includes headings and subheadings. I need to display just the headings on another worksheet and I need to strip the first section of the head off and just display the second half.
The headings are in the following format:
TEAM A1A - Team Name
The word team is obviously the same length for all, but the A1A code can be 2 or 3 characters long, and can be a mix of letters and numbers. The dash is always the same, but the team name could be 2, 3, or 4 worlds long. So, using a function like MID() doesn't work (not easily anyway).
I have been looking at Regular Expressions, and I think using something like rePostMatch could help me to strip out the team name, but I have no idea how to get this to work in a function and frankly I'm getting totally confused between RegExp and regExpr in vbscript. Any help GREATLY appreciated!