Checking if worksheet exsits
On Error Resume Next
Set sh = Worksheets(rn)
On Error Goto 0
If Not sh Is Nothing Then
...
--
---
HTH
Bob
(there's no email, no snail mail, but somewhere should be gmail in my addy)
"treasuresflemar" wrote in message
...
I have
Dim rn as string ' contains name of worksheet
Dim rs as string , contains name of named range
How do I check to see if worksheet rn exists
and named range rs?
Currently trapping err.number but got to be a better way.
Thanks
|