Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

hiding work sheets in exel 2

Status
Not open for further replies.

R9772

Technical User
Aug 15, 2002
76
US
can someone help me find a way to hide a work sheet in exel...or is this even possible?
 
I'm assuming you're asking how to do it in vba:

ActiveWorkbook.Sheets("Sheet Name Here").Visible = xlSheetVeryHidden


starsky51.
 
Just be aware that "VeryHidden" sheets can only be unhidden via code (the Excel Format>Sheet>Unhide command won't work). To mimic the hide method used from Excel, just use:

ActiveWorkbook.Sheets("Sheet Name Here").Visible = False

which would allow it to be unhidden from the Excel menu (subject to any password you put on it).

To undo either method, use:

ActiveWorkbook.Sheets("Sheet Name Here").Visible = True


Hope that helps!

VBAjedi [swords]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top