pcc
Well-known Member
- Joined
- Jan 21, 2003
- Messages
- 1,357
I have this code assigned to a commandbutton on a sheet
When I click the button, the sheet is hidden, but only hidden, not xlveryhidden - ie it can be unhidden using Format>Sheet>Unhide, and it shows up in VB Explorer with Property Visible = 0 - xlSheetHidden
I must be missing a trick but can't think what.
Can anyone enlighten me?
Cheers
Code:
ActiveSheet.Visible = xlVeryHidden
When I click the button, the sheet is hidden, but only hidden, not xlveryhidden - ie it can be unhidden using Format>Sheet>Unhide, and it shows up in VB Explorer with Property Visible = 0 - xlSheetHidden
I must be missing a trick but can't think what.
Can anyone enlighten me?
Cheers