Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 32
Default How to disable and hide ALL menu in Excel 2007?

Hi guys,

I need your help !!

Any idea how to disable in VBA all menus in EXCEL 2007?

On the top of that I need to hide also the main title on the top with Excel
+ name of the file appear - so it doesn't look Excel any more

Many thanks for your precious help!

Yvan
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 10,593
Default How to disable and hide ALL menu in Excel 2007?

Option Explicit

Private mFormulaBar

Private Sub Workbook_BeforeClose(Cancel As Boolean)
Dim oCB As CommandBar
For Each oCB In Application.CommandBars
oCB.Enabled = True
Next oCB

Application.DisplayFormulaBar = mFormulaBar
End Sub

Private Sub Workbook_Open()
Dim oCB As CommandBar
For Each oCB In Application.CommandBars
oCB.Enabled = False
Next oCB

mFormulaBar = Application.DisplayFormulaBar
Application.DisplayFormulaBar = False
End Sub

'This is workbook event code.
'To input this code, right click on the Excel icon on the worksheet
'(or next to the File menu if you maximise your workbooks),
'select View Code from the menu, and paste the code



--
---
HTH

Bob


(there's no email, no snail mail, but somewhere should be gmail in my addy)



"Marcus" wrote in message
...
Hi guys,

I need your help !!

Any idea how to disable in VBA all menus in EXCEL 2007?

On the top of that I need to hide also the main title on the top with
Excel
+ name of the file appear - so it doesn't look Excel any more

Many thanks for your precious help!

Yvan



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 32
Default How to disable and hide ALL menu in Excel 2007?

GREAT!!!! THANK YOU Phillips

BTW, do you know how we can remove the Excel green flag (top left), NAME of
the file (top middle) and the red cross (top right)?

Many thanks for you help!!!!

Yvan

"Bob Phillips" wrote:

Option Explicit

Private mFormulaBar

Private Sub Workbook_BeforeClose(Cancel As Boolean)
Dim oCB As CommandBar
For Each oCB In Application.CommandBars
oCB.Enabled = True
Next oCB

Application.DisplayFormulaBar = mFormulaBar
End Sub

Private Sub Workbook_Open()
Dim oCB As CommandBar
For Each oCB In Application.CommandBars
oCB.Enabled = False
Next oCB

mFormulaBar = Application.DisplayFormulaBar
Application.DisplayFormulaBar = False
End Sub

'This is workbook event code.
'To input this code, right click on the Excel icon on the worksheet
'(or next to the File menu if you maximise your workbooks),
'select View Code from the menu, and paste the code



--
---
HTH

Bob


(there's no email, no snail mail, but somewhere should be gmail in my addy)



"Marcus" wrote in message
...
Hi guys,

I need your help !!

Any idea how to disable in VBA all menus in EXCEL 2007?

On the top of that I need to hide also the main title on the top with
Excel
+ name of the file appear - so it doesn't look Excel any more

Many thanks for your precious help!

Yvan




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
Excel 2003 format menu disable it Setting up and Configuration of Excel 1 October 29th 07 02:15 PM
Hide ribbon or menu bar in Excel 2007 Jim Rech Excel Programming 3 January 18th 07 07:59 PM
Context Menu (Sub-Menu Disable/Enable) JR_06062005[_2_] Excel Programming 4 August 31st 06 06:01 PM
How disable menu command on excel view Armangelo Excel Discussion (Misc queries) 0 February 1st 06 10:04 AM
Menu Items and Disable/Enable in Excel 2003 [email protected] Excel Programming 1 February 6th 04 08:14 PM


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