PC Review


Reply
Thread Tools Rate Thread

Disabling Ribbon in '07

 
 
Risky Dave
Guest
Posts: n/a
 
      15th Dec 2008
Hi,

I have a piece of code that disables the ribbon under Vista in Office '07:

Private Sub Workbook_Open()
Application.ExecuteExcel4Macro "SHOW.TOOLBAR(""Ribbon"",False)" '
disables user ribbon functionality
<do other stuff here>
end sub()

This works as intended but it also turns off the ribbon in any other
spreadsheets that are open at the same time. Is it possible to turn off the
ribbon only in my spreadsheet?

TIA

Dave
 
Reply With Quote
 
 
 
 
Orion Cochrane
Guest
Posts: n/a
 
      15th Dec 2008
Make a Workbook_Activate event that calls Workbook_Open and a
Workbook_Deactivate event that reverses your Workbook_Open event. This should
work.
--
I am running on Office 2003, unless otherwise stated.


"Risky Dave" wrote:

> Hi,
>
> I have a piece of code that disables the ribbon under Vista in Office '07:
>
> Private Sub Workbook_Open()
> Application.ExecuteExcel4Macro "SHOW.TOOLBAR(""Ribbon"",False)" '
> disables user ribbon functionality
> <do other stuff here>
> end sub()
>
> This works as intended but it also turns off the ribbon in any other
> spreadsheets that are open at the same time. Is it possible to turn off the
> ribbon only in my spreadsheet?
>
> TIA
>
> Dave

 
Reply With Quote
 
Risky Dave
Guest
Posts: n/a
 
      15th Dec 2008
Perfect! My thanks

"Orion Cochrane" wrote:

> Make a Workbook_Activate event that calls Workbook_Open and a
> Workbook_Deactivate event that reverses your Workbook_Open event. This should
> work.
> --
> I am running on Office 2003, unless otherwise stated.
>
>
> "Risky Dave" wrote:
>
> > Hi,
> >
> > I have a piece of code that disables the ribbon under Vista in Office '07:
> >
> > Private Sub Workbook_Open()
> > Application.ExecuteExcel4Macro "SHOW.TOOLBAR(""Ribbon"",False)" '
> > disables user ribbon functionality
> > <do other stuff here>
> > end sub()
> >
> > This works as intended but it also turns off the ribbon in any other
> > spreadsheets that are open at the same time. Is it possible to turn off the
> > ribbon only in my spreadsheet?
> >
> > TIA
> >
> > Dave

 
Reply With Quote
 
Orion Cochrane
Guest
Posts: n/a
 
      15th Dec 2008
No problem. I know this because when I manipulate the Status Bar, I want the
messages contained to only apply to the specific workbook. Glad to help!
--
I am running on Office 2003, unless otherwise stated.


"Risky Dave" wrote:

> Perfect! My thanks
>
> "Orion Cochrane" wrote:
>
> > Make a Workbook_Activate event that calls Workbook_Open and a
> > Workbook_Deactivate event that reverses your Workbook_Open event. This should
> > work.
> > --
> > I am running on Office 2003, unless otherwise stated.
> >
> >
> > "Risky Dave" wrote:
> >
> > > Hi,
> > >
> > > I have a piece of code that disables the ribbon under Vista in Office '07:
> > >
> > > Private Sub Workbook_Open()
> > > Application.ExecuteExcel4Macro "SHOW.TOOLBAR(""Ribbon"",False)" '
> > > disables user ribbon functionality
> > > <do other stuff here>
> > > end sub()
> > >
> > > This works as intended but it also turns off the ribbon in any other
> > > spreadsheets that are open at the same time. Is it possible to turn off the
> > > ribbon only in my spreadsheet?
> > >
> > > TIA
> > >
> > > Dave

 
Reply With Quote
 
Ron de Bruin
Guest
Posts: n/a
 
      15th Dec 2008
Hi Risky

You can also do it without code (with RibbonX)

See
http://www.rondebruin.nl/ribbon.htm

Try one of the dictator examples in section 2

--

Regards Ron de Bruin
http://www.rondebruin.nl/tips.htm


"Risky Dave" <(E-Mail Removed)> wrote in message news:5CD6EA65-BAFA-4347-9F51-(E-Mail Removed)...
> Hi,
>
> I have a piece of code that disables the ribbon under Vista in Office '07:
>
> Private Sub Workbook_Open()
> Application.ExecuteExcel4Macro "SHOW.TOOLBAR(""Ribbon"",False)" '
> disables user ribbon functionality
> <do other stuff here>
> end sub()
>
> This works as intended but it also turns off the ribbon in any other
> spreadsheets that are open at the same time. Is it possible to turn off the
> ribbon only in my spreadsheet?
>
> TIA
>
> Dave

 
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
IDBE Ribbon Creator for Access 2007 ribbon customization dbguyatlanta Microsoft Access 8 1st Mar 2011 11:59 PM
altering the positions of tabs on the ribbon: ribbon customization gil Microsoft Word Document Management 2 24th Oct 2009 01:24 PM
Can we modify any of the ribbon tabs or create new ribbon tabs? Scott Sornberger Microsoft Excel New Users 2 19th Mar 2008 11:41 AM
Opening a report from the ribbon doesn't show it's custom ribbon =?Utf-8?B?QXJpYW4gR2VlcnRzZW1h?= Microsoft Access Reports 0 20th Aug 2007 11:34 AM
Disabling PST's Without Disabling Archiving Karine Rivet Microsoft Outlook 4 25th May 2005 10:05 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 09:34 PM.