To clarify, let's say I have two named ranges in my book. Both named ranges have the same name (for example, βmyNameβ), but one is bound to Sheet1 and the other to a workbook.
Given the name (string) of the Named Range, I want to capture the level of the named range of the workbook.
If I use my own call: wb.Names.Item("myName") , it returns a range with the specified range.
If I do this instead: wb.Names.Item("Sheet1!myName") , this obviously returns a range of names in the sheet area. I found that I can use this to indicate specific pages, but not a book.
Is there anyway I can indicate that I want the workspace to be occupied?
My workaround is currently iterating over the list of all the names and comparing the .Name property to capture the area of ββthe Named Range workspace. This works because the .Name property adds "Sheet1!". to a range of name ranges. It is, however, very expensive, and I want to avoid it.
Shark
source share