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


hi

i have a database running in excel, and i have a main control
worksheets, but i want to hide certain elements. i can run this code,
but the last line fails. any ideas would be good.

Sub Auto_open()
ActiveWindow.DisplayWorkbookTabs = False
Application.DisplayScrollBars = False
Application.DisplayFormulaBar = False
Application.CommandBars("standard").Visible = False
Application.CommandBars("formatting").Visible = False
Application.CommandBars("Worksheet Menu Bar").Visible = False

yours

Eliot
IT Trainer


--
kcammandc
------------------------------------------------------------------------
kcammandc's Profile: http://www.excelforum.com/member.php...o&userid=16333
View this thread: http://www.excelforum.com/showthread...hreadid=277208

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 863
Default hiding the Menu bar

This command made it disappear for me in XL XP.

Commandbars("Worksheet Menu Bar").Enabled = False

On Wed, 10 Nov 2004 15:52:32 -0600, kcammandc
wrote:


hi

i have a database running in excel, and i have a main control
worksheets, but i want to hide certain elements. i can run this code,
but the last line fails. any ideas would be good.

Sub Auto_open()
ActiveWindow.DisplayWorkbookTabs = False
Application.DisplayScrollBars = False
Application.DisplayFormulaBar = False
Application.CommandBars("standard").Visible = False
Application.CommandBars("formatting").Visible = False
Application.CommandBars("Worksheet Menu Bar").Visible = False

yours

Eliot
IT Trainer


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,272
Default hiding the Menu bar

Try

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

--

HTH

RP
(remove nothere from the email address if mailing direct)


"kcammandc" wrote in message
...

hi

i have a database running in excel, and i have a main control
worksheets, but i want to hide certain elements. i can run this code,
but the last line fails. any ideas would be good.

Sub Auto_open()
ActiveWindow.DisplayWorkbookTabs = False
Application.DisplayScrollBars = False
Application.DisplayFormulaBar = False
Application.CommandBars("standard").Visible = False
Application.CommandBars("formatting").Visible = False
Application.CommandBars("Worksheet Menu Bar").Visible = False

yours

Eliot
IT Trainer


--
kcammandc
------------------------------------------------------------------------
kcammandc's Profile:

http://www.excelforum.com/member.php...o&userid=16333
View this thread: http://www.excelforum.com/showthread...hreadid=277208



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
Hiding Drop Down menu Edgar[_3_] Excel Programming 1 February 18th 04 02:19 PM
Hiding toolbars but keeping the Windows Menu Bar? Big Chris[_28_] Excel Programming 1 January 9th 04 08:12 PM
hiding Worksheet menu bar Kevin G Excel Programming 0 September 17th 03 04:04 PM
hiding Worksheet menu bar Tom Ogilvy Excel Programming 0 September 17th 03 01:30 PM
hiding Worksheet menu bar Bob Phillips[_5_] Excel Programming 0 September 17th 03 01:30 PM


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