Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default Ribbon and toolbar, program control

I need to hide/redisplay (turn off or on) Excel's ribbon and quick access
toolbar from within a macro. This was easy enough in the older Excels but I
can't figure it out in Excel 2007. If I turn them off and on directly while
recording, all I get is a blank maco. Any help out there? Thanks!

--Ken

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 747
Default Ribbon and toolbar, program control

toggle with Ctrl + F1

On Oct 23, 7:08*am, "Ken" wrote:
I need to hide/redisplay (turn off or on) Excel's ribbon and quick access
toolbar from within a macro. This was easy enough in the older Excels but I
can't figure it out in Excel 2007. *If I turn them off and on directly while
recording, all I get is a blank maco. *Any help out there? *Thanks!

--Ken


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,123
Default Ribbon and toolbar, program control

Hi Ken

If it is for the whole ribbon use

Sub HideRibbon()
Application.ExecuteExcel4Macro "SHOW.TOOLBAR(""Ribbon"",False)"
End Sub


Sub ShowRibbon()
Application.ExecuteExcel4Macro "SHOW.TOOLBAR(""Ribbon"",True)"
End Sub


See also this page
http://www.rondebruin.nl/hidevisible.htm

Or on MSDN
http://msdn.microsoft.com/en-us/libr...ffice.11).aspx

And part 2
http://msdn.microsoft.com/en-us/libr...ffice.11).aspx








--

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


"Ken" wrote in message ...
I need to hide/redisplay (turn off or on) Excel's ribbon and quick access
toolbar from within a macro. This was easy enough in the older Excels but I
can't figure it out in Excel 2007. If I turn them off and on directly while
recording, all I get is a blank maco. Any help out there? Thanks!

--Ken

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
How do I get defaullt toolbar or ribbon in MS Office 2007? $$$ Excel Discussion (Misc queries) 2 December 4th 09 05:39 PM
Expand/collapse toolbar ribbon jday Excel Programming 6 April 15th 09 09:41 PM
Expand/collapse toolbar ribbon Rick Rothstein Excel Programming 0 April 14th 09 07:08 PM
Modifying XLA to show toolbar in XL 2003 and ribbon tab in XL 2007 jean grey Excel Programming 4 January 28th 09 05:14 AM
toolbar/ribbon hide/show macro barrowhill Excel Programming 2 July 26th 07 07:56 PM


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