#1   Report Post  
Posted to microsoft.public.excel.misc
Dave Peterson
 
Posts: n/a
Default Open workbook hides

Instead of hiding workbooks, your workbook_open event can just hide the sheets
you want hidden:

Option Explicit
Private Sub Workbook_Open()
Dim wks As Worksheet
Dim wksNameToShow As String

wksNameToShow = "showit"

Me.Worksheets(wksNameToShow).Visible = xlSheetVisible
For Each wks In Me.Worksheets
If LCase(wks.Name) = LCase(wksNameToShow) Then
'skip it
Else
wks.Visible = xlSheetHidden
End If
Next wks
End Sub


" wrote:

Thanks Dave,
I had had a startup macro in one of the workbooks that kept hiding all
the other workbooks, All I had wanted was for the workbook to show, and
nothing else such as the toolbars and the menus, and the worksheet
tabs...thats where the problem is from(Ibelieve) is from trying to hide
the worksheet tabs, the macro calls it workbook tabs,

I deleted the workbookopen event now things seem to be working fine

It would be neat to have just the sheet showing in this one particular
workbook
But I would still like too have the other workbooks show at the bottom
of the screen

anyway, I believe this is where my problem originated


--

Dave Peterson
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
Blank workbook opens when try to open any existing book poloboyUK Excel Discussion (Misc queries) 2 February 2nd 06 08:35 PM
Workbook fails to open - Excel 2003 nc Excel Discussion (Misc queries) 1 February 2nd 06 06:33 PM
One workbook file will not open in Excel T2010 Excel Worksheet Functions 0 January 8th 06 05:05 AM
Copying A Worksheet From Each Open Workbook to an new Workbook carl Excel Worksheet Functions 1 January 3rd 06 05:37 PM
keeping a toolbar attached to a workbook Paul Ponzelli Excel Discussion (Misc queries) 0 August 12th 05 11:39 PM


All times are GMT +1. The time now is 07:51 PM.

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

About Us

"It's about Microsoft Excel"