I have a need to use the External Address references as unique identifiers for cells in a worksheet. Using Range.Address(External:=True) returns a string of the form [Book1]Sheet1!$A$1...
I need a reliable way to extract workbook name "Book1", worksheet name "Sheet1", and cell reference "$A$1" from the above reference. The problem is easy in the form stated above; however because excel allows exclamation points, apostrophes, and spaces in workbook names and sheet names things get complicated.
Anybody have any prebaked code that can decompose an external address reference into the workbook name, worksheet name, and address?
Essentially I want the same result as using Range.Parent.Parent.Name (for workbook), Range.Parent.Name (for worksheet) and Range.Address(True,True) (for address) using a string manipulation on Range.Address(External:=True)
I need a reliable way to extract workbook name "Book1", worksheet name "Sheet1", and cell reference "$A$1" from the above reference. The problem is easy in the form stated above; however because excel allows exclamation points, apostrophes, and spaces in workbook names and sheet names things get complicated.
Anybody have any prebaked code that can decompose an external address reference into the workbook name, worksheet name, and address?
Essentially I want the same result as using Range.Parent.Parent.Name (for workbook), Range.Parent.Name (for worksheet) and Range.Address(True,True) (for address) using a string manipulation on Range.Address(External:=True)