Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 104
Default Toolbar not hiding

Oh Wise Ones,
I have a workbook that needs a lot of screen area.
It was loading the "Web" toolbar when it opened. I have added code to
close/hide the toolbar but it is not working. What am I doing wrong?

Code in ThisWorkbook:

Private Sub Workbook_Open()
Application.CommandBars("ActiveFactory").Visible = False
Application.CommandBars("Web").Visible = False
End Sub


Thanks,
Mike
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 7,247
Default Toolbar not hiding

I have seen circumstances in which Excel doesn't quite have itself
completely together when the Workbook_Open event runs. You might try using a
macro named Auto_Open (in a regular code module, not the ThisWorkbook
module) instead of Workbook_Open. Auto_Open runs later than Workbook_Open,
and Excel has itself put together by the time Auto_Open is called.

Also, you might want to consider changing to full screen mode. This hides
everything except the menu bar, the sheet tabs, and the scroll bars.

Application.DisplayFullScreen = True ' False to reset


--
Cordially,
Chip Pearson
Microsoft MVP - Excel, 10 Years
Pearson Software Consulting
www.cpearson.com
(email on the web site)

"Mike K" wrote in message
...
Oh Wise Ones,
I have a workbook that needs a lot of screen area.
It was loading the "Web" toolbar when it opened. I have added code to
close/hide the toolbar but it is not working. What am I doing wrong?

Code in ThisWorkbook:

Private Sub Workbook_Open()
Application.CommandBars("ActiveFactory").Visible = False
Application.CommandBars("Web").Visible = False
End Sub


Thanks,
Mike


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
toolbar "button" for hiding/unhiding sheets Barb in MD Excel Worksheet Functions 2 February 10th 10 01:45 AM
Hiding Control Toolbar Checkboxes Ellen G Excel Discussion (Misc queries) 2 September 24th 07 09:59 PM
Hiding the Standard Toolbar Andy T Excel Discussion (Misc queries) 2 December 15th 04 05:25 PM
Hiding a toolbar Shatin Excel Programming 3 February 22nd 04 07:48 PM
hiding menubar & toolbar SIMONÉ Excel Programming 1 January 21st 04 04:31 PM


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