View Full Version : Solved: Problem adding Macro Buttons to the QAT in Word 2007

07-14-2008, 01:37 PM
I have the following xml code in a template file (dotm). When I assign this dotm file to a word document, the new buttons on the Quick Access Toolbar do not show up. While I have this document open, if I open a recent document off of the office menu, the new document will open in a separate window and the buttons will show up on the original document that I assigned the template to. It's almost as if something is not initializing until I open another document and then pass focus back to the original document. I can place the standard buttons on the QAT along with the macro buttons and the standard buttons will show up as soon as word is opened but the macro buttons won't. Is this a bug in word 2007 or am I missing something in the XML file, the VBA, or possibly something in the setup of Word 2007?

<ribbon startFromScratch="true">
<button id="PrevDoc" abel="Previous Document" mageMso="GoRtl"
<button id="NextDoc" abel="Next Document" ImageMso="GoLeftToRight" onAction="NextDocument"/>

07-23-2008, 10:49 AM
I finally figured it out myself. Its kind of klugey.

Add the following code to the Load function pointed to by the xml

If ActiveDocument.Name <> ThisDocument.Name Then
With ActiveDocument
.Saved = True
End With
End If