I have an Excel spreadsheet with several columns of data. Since the columns might be re-arranged in the future, I have defined several "Named" ranges with formulas to give me the column numbers of the data.
e.g. The defined name "colFullName" refers to the formula:
I want to use the resulting values of the defined names/formulas in VBA, but I can't find the proper syntax to do so.Please Login or Register to view this content.
Here's the basic test I've been trying:
I've also tried:Please Login or Register to view this content.
but it just returns an error "Type mismatch (Error 13)"Please Login or Register to view this content.
What is the correct syntax to use the resulting value of a named formula in VBA?
Bookmarks