Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Hide and unhide worksheets

Hi people,

i'm having problems here. I wanted to hide all the worksheet tabs whe
i opened the workbook and managed to do that but now i don't know ho
to unhide them and i've lost the original macro so i don't know th
command i originally used... doh!

Ok, firstly i need to show all workbook tags again... how do i unhid
them?

secondly i want the workbook to open with sheet 1 visible and th
others hidden.

can anyone help me...

Helen x:confused

--
Message posted from http://www.ExcelForum.com

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,302
Default Hide and unhide worksheets

Hi Helen,

To unhide the worksheet tabs, Tools | Options | View ! Sheet Tabs

In VBA:

Sub Test
ActiveWindow.DisplayWorkbookTabs = False
End Sub

To hide all but Sheet1 on opening,
right-click the XL icon on the left of the menu bar | View Code and paste
the following into the ThisWorkbook module:

Sub workbook_open()
Dim WS As Worksheet

Sheets("Sheet1").Visible = True
For Each WS In Me.Sheets
If Not WS.Name = "Sheet1" Then
WS.Visible = False
End If
Next
End Sub

---
Regards,
Norman


"Profairy " wrote in message
...
Hi people,

i'm having problems here. I wanted to hide all the worksheet tabs when
i opened the workbook and managed to do that but now i don't know how
to unhide them and i've lost the original macro so i don't know the
command i originally used... doh!

Ok, firstly i need to show all workbook tags again... how do i unhide
them?

secondly i want the workbook to open with sheet 1 visible and the
others hidden.

can anyone help me...

Helen x


---
Message posted from http://www.ExcelForum.com/



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 81
Default Hide and unhide worksheets

Just to add, optionsviwetabs
to manual show hide all tabs.

Helen you don't work for cereform do you???

Ross
  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Hide and unhide worksheets

cereform? - no hehehe

Thanks for the advice every one!! I got that working..

--
Message posted from http://www.ExcelForum.com

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
Hide/Unhide worksheets upon entries in a range of the main worksheet ran58 Excel Discussion (Misc queries) 5 July 22nd 09 07:31 AM
Hide/Unhide row VBA Scafidel[_2_] Excel Discussion (Misc queries) 1 March 23rd 09 05:28 PM
Hide/Unhide [email protected] Excel Discussion (Misc queries) 0 July 24th 08 05:02 PM
How do I hide and unhide worksheets in Excel 2007? Wayne from Ottawa Canada Excel Discussion (Misc queries) 0 August 14th 06 02:54 AM
Hide/Unhide worksheets help Jeremy Gollehon[_2_] Excel Programming 2 July 31st 03 10:05 PM


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