Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3
Default Disable Excel Command Bars and Remove Irritating Grey Bar

I have tried to use the following code to disable the commandbars in an Excel
tool I am developing.
The code works fine, in disabling the command bars.
However, I occasionally get an irritating grey bar, roughly about as thick as
the 'DisplayFormulaBar', at the top of the page that obscures some of the
text at the top of the spreadsheet. Does anyone know how to disable the
commandbars and ensure that the grey bar is not produced at the top of the
spreasheet page.

Dim CBar As CommandBar

Application.ActiveWindow.DisplayHeadings = False
Application.DisplayFormulaBar = False

For Each CBar In Application.CommandBars
CBar.Enabled = False
Next

Yours in anticipation

AB

--
Message posted via OfficeKB.com
http://www.officekb.com/Uwe/Forums.a...mming/200512/1
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
URGENT HELP REQUIRED - EXCEL LOADS WITHOUT ANY COMMAND BARS AN francisA Excel Discussion (Misc queries) 1 May 8th 09 12:41 PM
Can I disable the Save command for an Excel file? Frali Excel Discussion (Misc queries) 1 September 14th 07 08:43 PM
how do Ii remove the grey page numbers in a work sheet parker1230 Excel Discussion (Misc queries) 4 February 3rd 05 01:02 AM
Hide all Excel tool/command bars except mine and reload on close Matt Jensen Excel Programming 2 December 20th 04 05:44 PM
Minimize/Maximize excel restores command bars Rockee052[_53_] Excel Programming 3 March 3rd 04 12:27 AM


All times are GMT +1. The time now is 07:01 AM.

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"