Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hello,
a workbook contain 5 worksheet i work in sheet1 i would like hide other sheets by macro any help? |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
hi,
in ThisworkBook Private Sub Workbook_SheetActivate(ByVal Sh As Object) Application.EnableEvents = False For i = 1 To Sheets.Count If Sheets(i).Name < Sh.Name Then Sheets(i).Visible = False Next Application.EnableEvents = True End Sub -- isabelle Le 2012-02-18 12:23, kalpesh a écrit : Hello, a workbook contain 5 worksheet i work in sheet1 i would like hide other sheets by macro any help? |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Do you mean working in Sheet1 specifically or any sheet you are
working on? If you do hide them will you want some method of uh-hiding later? Isabelle's code works on whichever worksheet is currently in use. If you un-hide a sheet through FormatSheetUnhide then it swaps with the sheet that was visible. Is that what you want? Gord On Sat, 18 Feb 2012 11:23:30 -0600, kalpesh wrote: Hello, a workbook contain 5 worksheet i work in sheet1 i would like hide other sheets by macro any help? |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Macro to hide column based on value on another sheet | Excel Programming | |||
How do I hide certain columns in a sheet with merged cells in a row using a macro? | Excel Programming | |||
If I have a work sheet protected and try to run a macro to hide rows or columns it won't work. Correct? | Excel Programming | |||
Macro to hide a sheet | Excel Programming | |||
Hide/unhide sheet macro based on cell calculation | Excel Programming |