PC Review


Reply
Thread Tools Rate Thread

altering the positions of tabs on the ribbon: ribbon customization

 
 
gil
Guest
Posts: n/a
 
      24th Oct 2009

Hi All,
I'd like to change my Word2007 ribbon so that the Addins tabs is either to the immediate right or left of my Home tab. I am using
the a Custom UI editor and the ribbon code in the attached template at present is:
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<customUI xmlns="http://schemas.microsoft.com/office/2006/01/customui">
<ribbon>
<tabs>
<tab idMso="TabHome" label="EMR-Home">
<group id="CustomGroup" label="toolbars" insertBeforeMso="GroupClipboard">
<button id="Btn1" label="a 2003 toolbar" imageMso="VisualBasic"
onAction="RibbonControl.MyBtnMacro" />
<button id="Btn2" label="Familiar old toolbar" imageMso="VisualBasic"
onAction="RibbonControl.MyBtnMacro2" />
<button id="Btn3" label="EMR toolbar" imageMso="VisualBasic"
onAction="RibbonControl.MyBtnMacro3" />
<button id="GroupAddinsCustomToolbars" label="EMRmoved" imageMso="VisualBasic"
onAction="RibbonControl.GroupAddinsCustomToolbars" />
</group>
</tab>
<tab idMso="TabAddIns" label="EMR-Addins">
</tab>
</tabs>
</ribbon>
</customUI>

I understand that I can hide a tab with something like the following for the insert tab:
<tab idMso="TabInsert" visible="false" />

How would I change my code to get what I am seeking?

Cheers,
Gil
Ten Second Medical RecordTM
http://www.TenSecondMedicalRecord.com
http://www.KeyChainEMR.com
Asheville, North Carolina






 
Reply With Quote
 
 
 
 
Doug Robbins - Word MVP
Guest
Posts: n/a
 
      24th Oct 2009
I think that you will need to create a custom tab that replicates the Addins
tab and use

insertAfterMso="TabHome"

attribute.

You would of course then want to hide the built-in Addins tab by setting its
visible attribute to false using

<tab idMso = "TabAddIns"
visible="false">
</tab>

--
Hope this helps.

Please reply to the newsgroup unless you wish to avail yourself of my
services on a paid consulting basis.

Doug Robbins - Word MVP, originally posted via msnews.microsoft.com
"gil" <(E-Mail Removed)> wrote in message
news:%(E-Mail Removed)...
> Hi All,
> I'd like to change my Word2007 ribbon so that the Addins tabs is either to
> the immediate right or left of my Home tab. I am using the a Custom UI
> editor and the ribbon code in the attached template at present is:
> <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
> <customUI xmlns="http://schemas.microsoft.com/office/2006/01/customui">
> <ribbon>
> <tabs>
> <tab idMso="TabHome" label="EMR-Home">
> <group id="CustomGroup" label="toolbars" insertBeforeMso="GroupClipboard">
> <button id="Btn1" label="a 2003 toolbar" imageMso="VisualBasic"
> onAction="RibbonControl.MyBtnMacro" />
> <button id="Btn2" label="Familiar old toolbar" imageMso="VisualBasic"
> onAction="RibbonControl.MyBtnMacro2" />
> <button id="Btn3" label="EMR toolbar" imageMso="VisualBasic"
> onAction="RibbonControl.MyBtnMacro3" />
> <button id="GroupAddinsCustomToolbars" label="EMRmoved"
> imageMso="VisualBasic"
> onAction="RibbonControl.GroupAddinsCustomToolbars" />
> </group>
> </tab>
> <tab idMso="TabAddIns" label="EMR-Addins">
> </tab>
> </tabs>
> </ribbon>
> </customUI>
>
> I understand that I can hide a tab with something like the following for
> the insert tab:
> <tab idMso="TabInsert" visible="false" />
>
> How would I change my code to get what I am seeking?
>
> Cheers,
> Gil
> Ten Second Medical RecordTM
> http://www.TenSecondMedicalRecord.com
> http://www.KeyChainEMR.com
> Asheville, North Carolina
>
>
>
>
>
>


 
Reply With Quote
 
gil
Guest
Posts: n/a
 
      24th Oct 2009



Thanks Doug,

I will gradually be able to construct a replica of my prior toolbar that I now have under Addins. But it'll likely take me a year
because there is a lot in it. I was hoping to avoid that. I am intending now to put it all in a UserForm for easier ongoing
modification. It sure would be neat to have a "toolbar export" function of some sort.

I do hear you: insertAfterMso="TabHome"

Thanks And Cheers,

Gil





"Doug Robbins - Word MVP" <(E-Mail Removed)> wrote in message news:O%(E-Mail Removed)...
>I think that you will need to create a custom tab that replicates the Addins tab and use
>
> insertAfterMso="TabHome"
>
> attribute.
>
> You would of course then want to hide the built-in Addins tab by setting its visible attribute to false using
>
> <tab idMso = "TabAddIns"
> visible="false">
> </tab>
>
> --
> Hope this helps.
>
> Please reply to the newsgroup unless you wish to avail yourself of my
> services on a paid consulting basis.
>
> Doug Robbins - Word MVP, originally posted via msnews.microsoft.com
> "gil" <(E-Mail Removed)> wrote in message news:%(E-Mail Removed)...
>> Hi All,
>> I'd like to change my Word2007 ribbon so that the Addins tabs is either to the immediate right or left of my Home tab. I am
>> using the a Custom UI editor and the ribbon code in the attached template at present is:
>> <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
>> <customUI xmlns="http://schemas.microsoft.com/office/2006/01/customui">
>> <ribbon>
>> <tabs>
>> <tab idMso="TabHome" label="EMR-Home">
>> <group id="CustomGroup" label="toolbars" insertBeforeMso="GroupClipboard">
>> <button id="Btn1" label="a 2003 toolbar" imageMso="VisualBasic"
>> onAction="RibbonControl.MyBtnMacro" />
>> <button id="Btn2" label="Familiar old toolbar" imageMso="VisualBasic"
>> onAction="RibbonControl.MyBtnMacro2" />
>> <button id="Btn3" label="EMR toolbar" imageMso="VisualBasic"
>> onAction="RibbonControl.MyBtnMacro3" />
>> <button id="GroupAddinsCustomToolbars" label="EMRmoved" imageMso="VisualBasic"
>> onAction="RibbonControl.GroupAddinsCustomToolbars" />
>> </group>
>> </tab>
>> <tab idMso="TabAddIns" label="EMR-Addins">
>> </tab>
>> </tabs>
>> </ribbon>
>> </customUI>
>>
>> I understand that I can hide a tab with something like the following for the insert tab:
>> <tab idMso="TabInsert" visible="false" />
>>
>> How would I change my code to get what I am seeking?
>>
>> Cheers,
>> Gil
>> Ten Second Medical RecordTM
>> http://www.TenSecondMedicalRecord.com
>> http://www.KeyChainEMR.com
>> Asheville, North Carolina
>>
>>
>>
>>
>>
>>

>


 
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
Re: Ribbon Customization in 2010 Tom van Stiphout Microsoft Access Forms 0 25th Jun 2010 04:26 AM
Ribbon Customization - Export to Excel button j_gold Microsoft Access 1 19th Jan 2010 06:29 PM
ribbon customization for table borders Peter T. Daniels Microsoft Word Document Management 26 2nd Sep 2009 08:14 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


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 08:04 AM.