dispelthemyth
Well-known Member
- Joined
- Mar 16, 2006
- Messages
- 664
- Office Version
- 365
- Platform
- Windows
I am currently using the below code to check if a named range exists before then doing some more checks on it to see if its valid
The named ranges are on multiple sheets, but the below code appears to only work for single cell named ranges and returns a black if its more than 1 cell.
Is there something simple i am missing?
The named ranges are on multiple sheets, but the below code appears to only work for single cell named ranges and returns a black if its more than 1 cell.
Is there something simple i am missing?
Code:
On Error Resume Next
Set rCellCheck = Nothing
Set rCellCheck = Evaluate(Names(csModelName).RefersTo)
Debug.Print rCellCheck
On Error GoTo 0