Thread
:
Run-time error '1004' - Unable to set the Visible property of the Worksheet class
View Single Post
#
3
Posted to microsoft.public.excel.programming
Paul Robinson
external usenet poster
Posts: 208
Run-time error '1004' - Unable to set the Visible property of the Worksheet class
Hi
Is the workbook (rather than the worksheet) protected? You can't
change the structure of the workbook (like making a sheet visible) if
it is.
regards
Paul
(Shalin Chopra) wrote in message . com...
Excel 97
All of a sudden I am getting the above error on an existing workbook
when activating and deactivating worksheets using VBA e.g.
Private Sub CommandButton3_Click()
Worksheets("WABC").Visible = True
Worksheets("WABC").Select
End Sub
The above procedure has worked previously and I cannot understand why
this is happening.
Any help would be appreciated.
Thanks
Shal
Reply With Quote
Paul Robinson
View Public Profile
Find all posts by Paul Robinson