Hi everyone,
I have a macro below to modify named range to right sizes. But the macro will fail if there are some names which refer to constant or formula, instead of a range. I think nm.RefersToRange.Name will fail if nm does not refer to a range.
My question is: is there a way to test if a name refers to a constant? If so, please don't do anything about that name. For other names that refer to a range, then action is taken to process them.
End Sub![]()
Please Login or Register to view this content.
Bookmarks