Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 161
Default Disabling Ribbon in '07

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
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 119
Default Disabling Ribbon in '07

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

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 161
Default Disabling Ribbon in '07

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

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 119
Default Disabling Ribbon in '07

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

  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,123
Default Disabling Ribbon in '07

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" wrote in message ...
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
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
Ribbon Ed J Excel Discussion (Misc queries) 2 May 18th 10 06:37 PM
The Ribbon cday Excel Discussion (Misc queries) 2 June 11th 09 06:01 PM
Ribbon HMT New Users to Excel 4 May 2nd 09 10:15 PM
ribbon Bryce Excel Discussion (Misc queries) 0 February 11th 09 03:56 PM
Can we modify any of the ribbon tabs or create new ribbon tabs? Scott Sornberger New Users to Excel 2 March 19th 08 11:41 AM


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