Reply
 
Thread Tools Display Modes
  #1   Report Post  
Posted to microsoft.public.word.docmanagement
Krijn Michiels Krijn Michiels is offline
external usenet poster
 
Posts: 2
Default 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   Report Post  
Posted to microsoft.public.word.docmanagement
Cindy M. Cindy M. is offline
external usenet poster
 
Posts: 2,416
Default 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   Report Post  
Posted to microsoft.public.word.docmanagement
Krijn Michiels Krijn Michiels is offline
external usenet poster
 
Posts: 2
Default 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

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Custom Templates in the Word 2007 File New Dialog Micheal Halloran Microsoft Word Help 2 August 8th 07 09:19 AM
Sharing templates Doug250451 Microsoft Word Help 1 May 7th 07 06:09 PM
Sharing templates on the network [email protected] Microsoft Word Help 1 May 20th 06 12:56 AM
Sharing custom dictionaries across the network the friendly display name Microsoft Word Help 0 October 3rd 05 02:51 PM
Sharing a custom dictionary? Guy Microsoft Word Help 4 December 29th 04 09:29 AM


All times are GMT +1. The time now is 05:34 PM.

Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 Microsoft Office Word Forum - WordBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Word"