Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Thank you-- this checking for range name worked just fine.
KIM W. "Barb Reinhardt" wrote: You could do something like this Dim myRange as Excel.Range Dim myWS as Excel.Worksheet for each myWS in ActiveWorkbook.Worksheets Set myRange = nothing on error resume next Set myRange = myWS.Range("YourRange") On Error GoTo 0 If Not myRange is Nothing then 'Range exists else 'Range does not exist end if next myWS "KIM W" wrote: How can I verify if a range exists on a worksheet? I am looping through all worksheets retrieving worksheet name info from a range, but I don't want to include worksheets without the specified named range. THe same name is used on each worksheet with scope limikted to the worksheet. |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Check to see if a range name exists on a sheet | Excel Programming | |||
Check if text exists within a cell range and return logical vaule - possible? | Excel Discussion (Misc queries) | |||
Check if a named range exists with VBA? | Excel Programming | |||
Check if named range exists! | Excel Programming | |||
Check if a number exists in a range? | Excel Discussion (Misc queries) |