Word 2007 customization using template

  • Thread starter Thread starter Kamran
  • Start date Start date
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
 
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
 
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
 
Back
Top