Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
Hide/Unhide sheets
Is it possible to hide and unhide sheets thru VBA?
Thnks |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
Hide/Unhide sheets
Hi Dave
Try Sheets("Sheet1").Visible = False .. .. .. Sheets("Sheet1").Visible = True -- Regards Roger Govier " wrote in message ... Is it possible to hide and unhide sheets thru VBA? Thnks |
#3
Posted to microsoft.public.excel.programming
|
|||
|
|||
Hide/Unhide sheets
Thnks
"Roger Govier" wrote in message ... Hi Dave Try Sheets("Sheet1").Visible = False . . . Sheets("Sheet1").Visible = True -- Regards Roger Govier " wrote in message ... Is it possible to hide and unhide sheets thru VBA? Thnks |
#4
Posted to microsoft.public.excel.programming
|
|||
|
|||
Hide/Unhide sheets
Public Sub Hidesheets()
Dim sh as Worksheet for each sh in thisworkbook.worksheets if sh.Name < "Sheet1" then sh.visible = xlSheetHidden else sh.Visible = xlSheetVisible end if Next End Sub as an example. -- Regards, Tom Ogilvy wrote in message ... Is it possible to hide and unhide sheets thru VBA? Thnks |
#5
Posted to microsoft.public.excel.programming
|
|||
|
|||
Hide/Unhide sheets
Just to add, the acceptable constants a
? xlSheetVisible -1 ? xlSheetHidden 0 ? xlSheetVeryHidden 2 True is coerced to -1 False is coerced to 0 so they work as well. -- Regards, Tom Ogilvy Roger Govier wrote in message ... Hi Dave Try Sheets("Sheet1").Visible = False . . . Sheets("Sheet1").Visible = True -- Regards Roger Govier " wrote in message ... Is it possible to hide and unhide sheets thru VBA? Thnks |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Toolbar buttons to hide/unhide sheets | Excel Discussion (Misc queries) | |||
Macro-Hide & Unhide Sheets with condition | Excel Discussion (Misc queries) | |||
Hide or unhide sheets based on cell | Excel Discussion (Misc queries) | |||
Password to hide and unhide sheets | Excel Programming | |||
Password to hide and unhide sheets | Excel Programming |