Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
dim dim is offline
external usenet poster
 
Posts: 123
Default Making a [semi] Dictator Application: Hiding Main Command Bar?

Hi all,

I have included a variety of elements in my auto-open macro to hide shortcut
bars and such, and I just added in Application.ShowWindowsInTaskbar =
False....anyway...I want to also hide the main command bar that has the File,
Edit, View, Insert, Format, Tools etc drop down menus at the top of my Excel
program window. I dont need to replace these with my own, so I don't need to
know how to do that right now....just the VBA code to hide it. How do I hide
it?

Thanks.
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 22,906
Default Making a [semi] Dictator Application: Hiding Main Command Bar?

Application.CommandBars("Worksheet Menu Bar").Enabled = False

and True to unhide it again.

Add it to code like this for a clean look.

Private Sub Workbook_Open()
Application.Caption = " "
ActiveWindow.Caption = "My Clean Look"
With ActiveWindow
.DisplayGridlines = False
.DisplayHeadings = False
.DisplayHorizontalScrollBar = False
.DisplayVerticalScrollBar = False
.DisplayWorkbookTabs = False
End With
With Application
.CommandBars("Worksheet Menu Bar").Enabled = False
.DisplayFormulaBar = False
.DisplayStatusBar = False
.CommandBars("Standard").Visible = False
.CommandBars("Formatting").Visible = Fals
End With
End Sub


Gord Dibben MS Excel MVP

On Mon, 7 Jan 2008 13:43:05 -0800, dim wrote:

Hi all,

I have included a variety of elements in my auto-open macro to hide shortcut
bars and such, and I just added in Application.ShowWindowsInTaskbar =
False....anyway...I want to also hide the main command bar that has the File,
Edit, View, Insert, Format, Tools etc drop down menus at the top of my Excel
program window. I dont need to replace these with my own, so I don't need to
know how to do that right now....just the VBA code to hide it. How do I hide
it?

Thanks.


  #3   Report Post  
Posted to microsoft.public.excel.misc
dim dim is offline
external usenet poster
 
Posts: 123
Default Making a [semi] Dictator Application: Hiding Main Command Bar?

Hi Gord,

Thanks for the reply....I think I posted this question twice by accident.....
.....anyway, that worked perfectly.....but I forgot to re-enable the main
command bar in my auto-close macro, and now its gone permanently whenever I
open excel !!!!!!

Is there a shortcut key to get into the VBA window when an xls file is open?

:-( Thanks.

"Gord Dibben" wrote:

Application.CommandBars("Worksheet Menu Bar").Enabled = False

and True to unhide it again.

Add it to code like this for a clean look.

Private Sub Workbook_Open()
Application.Caption = " "
ActiveWindow.Caption = "My Clean Look"
With ActiveWindow
.DisplayGridlines = False
.DisplayHeadings = False
.DisplayHorizontalScrollBar = False
.DisplayVerticalScrollBar = False
.DisplayWorkbookTabs = False
End With
With Application
.CommandBars("Worksheet Menu Bar").Enabled = False
.DisplayFormulaBar = False
.DisplayStatusBar = False
.CommandBars("Standard").Visible = False
.CommandBars("Formatting").Visible = Fals
End With
End Sub


Gord Dibben MS Excel MVP

On Mon, 7 Jan 2008 13:43:05 -0800, dim wrote:

Hi all,

I have included a variety of elements in my auto-open macro to hide shortcut
bars and such, and I just added in Application.ShowWindowsInTaskbar =
False....anyway...I want to also hide the main command bar that has the File,
Edit, View, Insert, Format, Tools etc drop down menus at the top of my Excel
program window. I dont need to replace these with my own, so I don't need to
know how to do that right now....just the VBA code to hide it. How do I hide
it?

Thanks.



  #4   Report Post  
Posted to microsoft.public.excel.misc
dim dim is offline
external usenet poster
 
Posts: 123
Default Making a [semi] Dictator Application: Hiding Main Command Bar?

Never Mind....I found it! Alt + F11

That was embarrasing! :-)

Thanks again!

  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 22,906
Default Making a [semi] Dictator Application: Hiding Main Command Bar?


See also my response in programming group.


Gord



On Mon, 7 Jan 2008 15:03:00 -0800, dim wrote:

Hi Gord,

Thanks for the reply....I think I posted this question twice by accident.....
....anyway, that worked perfectly.....but I forgot to re-enable the main
command bar in my auto-close macro, and now its gone permanently whenever I
open excel !!!!!!

Is there a shortcut key to get into the VBA window when an xls file is open?

:-( Thanks.

"Gord Dibben" wrote:

Application.CommandBars("Worksheet Menu Bar").Enabled = False

and True to unhide it again.

Add it to code like this for a clean look.

Private Sub Workbook_Open()
Application.Caption = " "
ActiveWindow.Caption = "My Clean Look"
With ActiveWindow
.DisplayGridlines = False
.DisplayHeadings = False
.DisplayHorizontalScrollBar = False
.DisplayVerticalScrollBar = False
.DisplayWorkbookTabs = False
End With
With Application
.CommandBars("Worksheet Menu Bar").Enabled = False
.DisplayFormulaBar = False
.DisplayStatusBar = False
.CommandBars("Standard").Visible = False
.CommandBars("Formatting").Visible = Fals
End With
End Sub


Gord Dibben MS Excel MVP

On Mon, 7 Jan 2008 13:43:05 -0800, dim wrote:

Hi all,

I have included a variety of elements in my auto-open macro to hide shortcut
bars and such, and I just added in Application.ShowWindowsInTaskbar =
False....anyway...I want to also hide the main command bar that has the File,
Edit, View, Insert, Format, Tools etc drop down menus at the top of my Excel
program window. I dont need to replace these with my own, so I don't need to
know how to do that right now....just the VBA code to hide it. How do I hide
it?

Thanks.




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
Alternative add-on application to VLOOKUPS command? Nikki Excel Discussion (Misc queries) 2 September 6th 07 01:42 AM
Application.Caller with Command Buttons? RBee Excel Discussion (Misc queries) 3 August 15th 06 07:39 PM
Making Excel's open command work like Word 280Z28 Excel Discussion (Misc queries) 2 June 8th 06 05:56 PM
hiding application Chip Smith Excel Discussion (Misc queries) 1 April 1st 06 10:53 AM
Send to command - change default email application? Helen Setting up and Configuration of Excel 2 August 16th 05 03:31 AM


All times are GMT +1. The time now is 06:02 AM.

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"