View Single Post
  #4   Report Post  
Posted to microsoft.public.excel.misc
Stefi
 
Posts: n/a
Default Show or Hide a worksheet with a macro

Only one by one, e.g. see Help on Visible Property:

For Each sh In Sheets
sh.Visible = True
Next sh


Stefi

€˛Hasty€¯ ezt Ć*rta:

This is for only one worksheet, but how do i make this for more than one
worksheet

"Stefi" wrote:


hide: Worksheets("worksheetname").Visible = False
unhide: Worksheets("worksheetname").Visible = True

Regards,
Stefi

€˛Hasty€¯ ezt Ć*rta:

I'm trying to hide some specific worksheets in my workbook and in the same
time to show other worksheets, depending of the choise i make. Can anyone
help me please