Word 2007 customization using template

K

Kamran

Hi All,

I am customizing Word 2007 ribbon by using XML in Word template. I am tuning
'on' and 'off' few options on Office button and 'Review' tab. Following is
XML code of my.docm:

<customUI xmlns="http://schemas.microsoft.com/office/2006/01/customui">
<commands>
<command idMso="FileExit" enabled="false"/>
</commands>

<ribbon startFromScratch="false">
<officeMenu>
<button idMso="FileNew" visible="false"/>
<button idMso="FileOpen" visible="false"/>
<!--button idMso="FileSave" visible="false" /-->
<menu idMso="FileSaveAs">
<button idMso="FileSaveAsMenu" visible="false" />
</menu>
<button idMso="FileSaveAs" visible="false" />
</officeMenu>

<tabs>
<tab idMso="TabReviewWord">
<group idMso="GroupChangesTracking" visible="false" />
</tab>

</tabs>
</ribbon>
</customUI>

I want to make 'Review' tab as either first tab, instead of 'Home' OR make
'Review' tab in focus - just like a user, after opening 'my.docm' clicked on
'Review' tab. How can this be done using XML?

TIA

Kamran
 
D

Doug Robbins - Word MVP

Try using

insertBeforeMso="TabHome"

--
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
 
K

Kamran

Hi Doug,

I used insertBeforeMso:

<tab idMso="TabReviewWord" insertBeforeMso="TabHome">
<group idMso="GroupChangesTracking" visible="false" />
</tab>

but Review tab remains on its place. I am new to XML and the template XML
was written after several tries using MSDN etc. I do not want to create my
custom 'Review' tab - just to make it in focus.

Thanks again,

Kamran
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top