Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.word.docmanagement
|
|||
|
|||
Word 2007 - Sharing custom tab between 2 templates
Hi all,
I have following two problems: I have 2 templates (in the word startup directory), called bst.dotm and dbh.dotm. They both contain some macro's. What I want to do is : - Create a custom tab called 'remmicom' - In this tab, I want to see 2 'groups' called bst and dbh which contain the buttons to call the macro's. What I allready did was - using the Microsoft Office 2007 Custom UI Editor - add following "code" both the dotm-files : customUI xmlns="http://schemas.microsoft.com/office/2006/01/customui" ribbon startFromScratch="false" tabs tab id="customTab" label="Remmicom" group id="customGroup" label="BST" (or DBH in the other) button id="customButton" label="Custom Button" imageMso="HappyFace" size="large" onAction="Callback" / /group /tab /tabs /ribbon /customUI Everythings works out fine....exept I see 2 tab-pages called remmicom (containing each 1 group). ** My first question is : is it possible to make sure that the customgroup of both templates are shown in the same customtab (and how can I do this).....Merging both templates is however not an option ** My second question is : is it possible to 'somehow automatically' add a button (with a macro) to the QAT (so that everyone using the template has that button in the QAT ? Thanx in advance Geert |
#2
Posted to microsoft.public.word.docmanagement
|
|||
|
|||
Word 2007 - Sharing custom tab between 2 templates
Hi Geert,
I have following two problems: I have 2 templates (in the word startup directory), called bst.dotm and dbh.dotm. They both contain some macro's. What I want to do is : - Create a custom tab called 'remmicom' - In this tab, I want to see 2 'groups' called bst and dbh which contain the buttons to call the macro's. What I allready did was - using the Microsoft Office 2007 Custom UI Editor - add following "code" both the dotm-files : customUI xmlns="http://schemas.microsoft.com/office/2006/01/customui" ribbon startFromScratch="false" tabs tab id="customTab" label="Remmicom" group id="customGroup" label="BST" (or DBH in the other) button id="customButton" label="Custom Button" imageMso="HappyFace" size="large" onAction="Callback" / /group /tab /tabs /ribbon /customUI Everythings works out fine....exept I see 2 tab-pages called remmicom (containing each 1 group). ** My first question is : is it possible to make sure that the customgroup of both templates are shown in the same customtab (and how can I do this).....Merging both templates is however not an option ** My second question is : is it possible to 'somehow automatically' add a button (with a macro) to the QAT (so that everyone using the template has that button in the QAT ? You might want to follow up on this at pschmid.net if you stay "stuck". It should be possible to combine to separately defined Ribbon tabs if they both belong to the same namespace. This would mean you need to declare and use a namespace in your Ribbon XML. Use the same namespace when creating the tabs, so that they will be put together. This is what the idQ attribute is for. Take a look at Table 1 in the Part 1 MSDN article about customizing Ribbon UI (by Ken Getz). You can open the template in Word and add a button to the QAT, saving it *in that template* (there's a dropdown above the list of QAT buttons in the Customize dialog box). Then everyone should see the button in their QAT. Cindy Meister INTER-Solutions, Switzerland http://homepage.swissonline.ch/cindymeister (last update Jun 17 2005) http://www.word.mvps.org This reply is posted in the Newsgroup; please post any follow question or reply in the newsgroup and not by e-mail :-) |
#3
Posted to microsoft.public.word.docmanagement
|
|||
|
|||
Word 2007 - Sharing custom tab between 2 templates
Hi Cindy,
Again you save me..thnx a lot ( PS: in the past you helped me with our fields problems). "Cindy M." wrote: Hi Geert, I have following two problems: I have 2 templates (in the word startup directory), called bst.dotm and dbh.dotm. They both contain some macro's. What I want to do is : - Create a custom tab called 'remmicom' - In this tab, I want to see 2 'groups' called bst and dbh which contain the buttons to call the macro's. What I allready did was - using the Microsoft Office 2007 Custom UI Editor - add following "code" both the dotm-files : customUI xmlns="http://schemas.microsoft.com/office/2006/01/customui" ribbon startFromScratch="false" tabs tab id="customTab" label="Remmicom" group id="customGroup" label="BST" (or DBH in the other) button id="customButton" label="Custom Button" imageMso="HappyFace" size="large" onAction="Callback" / /group /tab /tabs /ribbon /customUI Everythings works out fine....exept I see 2 tab-pages called remmicom (containing each 1 group). ** My first question is : is it possible to make sure that the customgroup of both templates are shown in the same customtab (and how can I do this).....Merging both templates is however not an option ** My second question is : is it possible to 'somehow automatically' add a button (with a macro) to the QAT (so that everyone using the template has that button in the QAT ? You might want to follow up on this at pschmid.net if you stay "stuck". It should be possible to combine to separately defined Ribbon tabs if they both belong to the same namespace. This would mean you need to declare and use a namespace in your Ribbon XML. Use the same namespace when creating the tabs, so that they will be put together. This is what the idQ attribute is for. Take a look at Table 1 in the Part 1 MSDN article about customizing Ribbon UI (by Ken Getz). You can open the template in Word and add a button to the QAT, saving it *in that template* (there's a dropdown above the list of QAT buttons in the Customize dialog box). Then everyone should see the button in their QAT. Cindy Meister INTER-Solutions, Switzerland http://homepage.swissonline.ch/cindymeister (last update Jun 17 2005) http://www.word.mvps.org This reply is posted in the Newsgroup; please post any follow question or reply in the newsgroup and not by e-mail :-) |
Reply |
Thread Tools | |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Custom Templates in the Word 2007 File New Dialog | Microsoft Word Help | |||
Sharing templates | Microsoft Word Help | |||
Sharing templates on the network | Microsoft Word Help | |||
Sharing custom dictionaries across the network | Microsoft Word Help | |||
Sharing a custom dictionary? | Microsoft Word Help |