LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #11   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,123
Default Adding Menus to the Ribbon

For the OP

In example 3 on this page there is a example to hide a group if you open another workbook
http://www.rondebruin.nl/compatiblemenu.htm

Maybe this will give you a idea


--

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


"Jim Rech" wrote in message ...
How to do this is "beyond the scope of a newsgroup post" I'm afraid. And I
don't have time to do a full-blown example. Can you do as you suggested
before - have the called macro make sure the right workbook is active?

--
Jim
"RyanH" wrote in message
...
|I am very new to XML and afraid I don't know much about it. How would I
| change the tabs visiblity attribute when the workbook is activated and
| deactivated.
| --
| Cheers,
| Ryan
|
|
| "Jim Rech" wrote:
|
| How can I ensure that the tab is always placed last in the Ribbon.
| <tab id="MyCustomTab" label="My Tab" insertAfterMso="TabDeveloper"
|
| If you leave the insertAfterMso="TabDeveloper" out completely I believe
| Excel will place your group last at the time it adds the group. The
above
| places the group between the Developer tab but before Add-ins if you
have
| that displayed. I say "at the time it adds the group" because a later
| loaded workbook or add-in can have its group placed after yours so you
| cannot force your to always be last.
|
| Re changing the tab's visibility at runtime, you should be able to do
that
| by invalidating the ribbon with the workbook activate and deactivate
events
| along with using the getVisible attribute to name a procedure returning
the
| visible state.
|
| --
| Jim
| "Ron de Bruin" wrote in message
| ...
| |
| | Hi Ryan
| |
| | Use insertAfterMso
| |
| | <tab id="MyCustomTab" label="My Tab" insertAfterMso="TabDeveloper"
| |
| |
| | Plus, I have noticed that if I save the workbook with a .xls
extension
| the
| | Ribbon goes back to default settings when activating another
workbook
| and
| | back to the custom settings I have when the my workbook is
reactivated.
| Why
| | does it not do that when I have the workbook saved with a .xla
| extension?
| |
| | That's normal in 2007
| | A xla is a hidden workbook and the code/menus that is in it you want
to
| use in all
| | open workbooks that is in the xla.
| |
| | In a normal workbook it will load the ribbonX when you activate the
| workbook and
| | remove your changes when you deactivate it
| |
| |
| |
| | --
| |
| | Regards Ron de Bruin
| | http://www.rondebruin.nl/tips.htm
| |
| |
| | "RyanH" wrote in message
| ...
| | I have a 2007 Add-In workbook that has XML in it to add a Custon Menu
Tab
| in
| | the Ribbon. How can I ensure that the tab is always placed last in
the
| | Ribbon. For example, Home, Insert, Page Layout, ...., Developer,
CUSTOM
| TAB
| | HERE.
| |
| | Plus, I have noticed that if I save the workbook with a .xls
extension
| the
| | Ribbon goes back to default settings when activating another
workbook
| and
| | back to the custom settings I have when the my workbook is
reactivated.
| Why
| | does it not do that when I have the workbook saved with a .xla
| extension?
| | --
| | Cheers,
| | Ryan
|
|

 
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 into tool bard and drop down menus RRSCOUNTRY Excel Discussion (Misc queries) 3 August 27th 08 10:37 PM
Custom menus don't appear under custom ribbon tab Misbah Excel Programming 2 April 15th 08 01:29 AM
Ribbon vs. Menus mifukhed Excel Discussion (Misc queries) 4 June 1st 06 07:14 AM
Adding dropdown menus? Tavish Muldoon Excel Discussion (Misc queries) 1 February 18th 05 11:04 PM
Adding menus! aiyer[_8_] Excel Programming 1 April 7th 04 07:55 PM


All times are GMT +1. The time now is 09:37 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"