Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
Hasty
 
Posts: n/a
Default Show or Hide a worksheet with a macro

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
  #2   Report Post  
Posted to microsoft.public.excel.misc
Stefi
 
Posts: n/a
Default Show or Hide a worksheet with a macro


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

  #3   Report Post  
Posted to microsoft.public.excel.misc
Hasty
 
Posts: n/a
Default Show or Hide a worksheet with a macro

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

  #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

  #5   Report Post  
Posted to microsoft.public.excel.misc
Hasty
 
Posts: n/a
Default Show or Hide a worksheet with a macro

Thank You! That answered my puzzle

"Stefi" wrote:

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

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Help with a macro to open to a specific worksheet EAHRENS Excel Worksheet Functions 0 November 30th 05 08:36 PM
Editing a simple macro Connie Martin Excel Worksheet Functions 5 November 29th 05 09:19 PM
Macro to search for and display data in another worksheet Mark H Excel Worksheet Functions 0 June 14th 05 12:40 PM
hide column but show chart Svetlana Charts and Charting in Excel 1 January 14th 05 09:49 AM
Executing macro for all worksheet from a different worksheet Biti New Users to Excel 3 December 8th 04 10:05 AM


All times are GMT +1. The time now is 09:49 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"