PC Review


Reply
Thread Tools Rate Thread

How to disable and hide ALL menu in Excel 2007?

 
 
Marcus
Guest
Posts: n/a
 
      13th Mar 2008
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 With Quote
 
 
 
 
Bob Phillips
Guest
Posts: n/a
 
      13th Mar 2008
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" <(E-Mail Removed)> wrote in message
news:B0FC57CD-C62B-4ABE-9E2D-(E-Mail Removed)...
> 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 With Quote
 
Marcus
Guest
Posts: n/a
 
      13th Mar 2008
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" <(E-Mail Removed)> wrote in message
> news:B0FC57CD-C62B-4ABE-9E2D-(E-Mail Removed)...
> > 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 With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Hide/disable View menu Yba Windows XP Internet Explorer 7 25th Jan 2009 12:57 PM
Excel 2007: Disable Office Menu control on the fly Gary Nguyen Microsoft Excel Discussion 9 19th Nov 2008 09:52 PM
Re: Hide ribbon or menu bar in Excel 2007 Jim Rech Microsoft Excel Programming 3 18th Jan 2007 07:59 PM
hide or disable the IE menu bar =?Utf-8?B?RS5TaA==?= Windows XP Internet Explorer 2 19th Sep 2005 03:10 AM
Disable/Hide IE Tools Menu =?Utf-8?B?TmF2YXI=?= Windows XP Internet Explorer 8 21st Dec 2004 05:33 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 07:58 PM.