#1   Report Post  
Posted to microsoft.public.excel.programming
tjh tjh is offline
external usenet poster
 
Posts: 96
Default Unhide

hello,

Is there an easier way to unhide all the sheets in a workbook or hide a
large number of them without having to select each sheet individually.

I currently use something like this:

Sheet("sheet1").visible = true
Sheet("sheet2").visible = true
Sheet("sheet3").visible = true
Sheet("sheet4").visible = true
Sheet("sheet5").visible = true

Can I do this in a simpler statement.

Thank You,

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 184
Default Unhide

Hi, another way to skin the same cat:

Sub show_all()
Dim ws As Worksheet
For Each ws In Worksheets
ws.Visible = True
Next
End Sub

Regards--Lonnie M.

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,337
Default Unhide

OP didn't say ALL

--
Don Guillett
SalesAid Software

"Lonnie M." wrote in message
oups.com...
Hi, another way to skin the same cat:

Sub show_all()
Dim ws As Worksheet
For Each ws In Worksheets
ws.Visible = True
Next
End Sub

Regards--Lonnie M.



  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 184
Default Unhide

OP:
Is there an easier way to unhide all the sheets in a workbook (my
example) or hide a
large number of them (your example) without having to select each sheet
individually.

Just trying to add to your helpful post to give him more options...

By the way thanks for all of your posts I have gleaned a great deal
from them.
Have a good one--Lonnie M.



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
row won't unhide terie Excel Discussion (Misc queries) 5 April 4th 23 10:20 AM
unhide row does not unhide the hidden rows nikita Excel Worksheet Functions 4 May 24th 08 02:59 PM
Unhide column - why doesn't click unhide column work? H Stevens Excel Discussion (Misc queries) 1 November 15th 07 12:36 AM
how do i unhide a worksheet in excel 2003? unhide tab don't work mikekeat Excel Discussion (Misc queries) 2 March 6th 06 03:36 AM
How do I unhide a column when format/column/unhide won't work lincolnblaze Excel Worksheet Functions 1 December 14th 05 03:38 AM


All times are GMT +1. The time now is 07:30 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"