Hi, I am trying to unhide a very hidden worksheet based on a name picked from the drop down list. I am getting a Run-time error 91 Object variable or with block variable not set on the "If ws = Worksheets("Administrator").Range("B9").Value Then" line. Any ideas on how to fix this?
Code:
Dim ws As Worksheet
If ws = Worksheets("Admin").Range("B9").Value Then
ws.Visible = True
End If
Call Macro1
End Sub
Thanks for the help.
Mike
Code:
Dim ws As Worksheet
If ws = Worksheets("Admin").Range("B9").Value Then
ws.Visible = True
End If
Call Macro1
End Sub
Thanks for the help.
Mike