I noticed a post for a cell formula for parsing a column with two space-seperated names, but the solution doesn’t appear to work for what I am trying to do. In VB for excel, there doesn’t seem to be a way to trim (that is, delete) from the left 11 characters from a string, leaving whatever is left as the value needed.
Here’s what I’m doing: programmatically creating a new page with a reference number inputted by the user, with the string “Recipients ” in front of the new sheet name. Now, I want to be able to programmically return to the page that spawns this new page. The parent page is just the reference number, so it would be nice to do the reverse of what was done to spawn the Recipient page by deleting the fixed string to get the original sheet name. This is for a rather heavily automated Excel project so all sheet references should be relative.
The VB to spawn the new page has this pertinent line: Sheets(“Primary Recipients (2)”).Name = “Recipients ” & PrimaryRecipientsName. In the VB for returning to the sheet that created this sheet I’d love to just subtract the “Recipients ” string from the Activesheet.Name so it goes unfailingly to the parent sheet. Is this possible? I can’t get it to work.
I don’t want to assume the inputted reference number, string, whathaveyou has no blanks so the solution I referred to earlier is not ideal.
TIA