Share via

Duplicate Custom QAT

Anonymous
2015-09-28T13:14:33+00:00

Good Morning,

I am having a problem with a template I created to for developing instructional lesson plans.  I attached a custom QAT to the template that contains several macros for use with the template.  I did this instead of building a customized tab for the ribbon because there are extremely tight controls on that in my agency.  The problem I am having is that the custom QAT is showing up twice in any documents created from the template.  It only shows up once when you create a new document, but it then shows up twice every time you open the document after that.  I can't figure out why it's doing that.  Does anyone have any suggestions or ideas on what I should check or look at to fix it?

Here's a screen cap of what's happening.  Let me know if a copy of the actual template would help.  I just don't want to post it if it's not needed.

Thanks,

John

Microsoft 365 and Office | Word | For home | Windows

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments

10 answers

Sort by: Most helpful
  1. Doug Robbins - MVP - Office Apps and Services 323.1K Reputation points MVP Volunteer Moderator
    2015-09-29T22:17:33+00:00

    What does the QAT look like when you create a blank document (from the Normal.dotm template)?

    I notice that while you use the word "Template", the file For 50034 Trial 2 20150929 is a document (docx), not a template that would have a dotx or dotm extension.

    Do you also have a template with the name For 50034 Trial 2 20150929 in the Word Startup Folder?  Go to the Developer tab and then click on the Add-Ins button in the Add-Ins section of the ribbon and uncheck all of the items that are shown as being loaded.  Do you then see both sets of QAT buttons?

    Was this answer helpful?

    1 person found this answer helpful.
    0 comments No comments
  2. Stefan Blom 342.4K Reputation points MVP Volunteer Moderator
    2015-09-29T12:44:09+00:00

    When you select "For all documents (default)" in the "Customize Quick Access Toolbar" drop down at File | Options | Quick Access Toolbar, the modifications go into the Word.qat file (this applies to Word 2007) or Word.officeui(this is the file name in later versions). The path to the file, at least for Word 2013 on Windows 7, is C:\Users\UserName\AppData\Local\Microsoft\Office.

    Beyond that, you can add buttons to specific Word files (*.docx). You can pick an open file in the "Customize Quick Access Toolbar" drop down and then customize its QAT buttons. 

    As I wrote, when you save your changes you will see the buttons saved to the Word.qat or Word.officeui on the far right of the toolbar and then the buttons from other open documents or templates follow.

    Was this answer helpful?

    1 person found this answer helpful.
    0 comments No comments
  3. Anonymous
    2015-09-29T13:45:54+00:00

    I looked at my Word.officeui file, and I don't see anything that looks like it's duplicated or even points to the custom buttons and macros in this one template.  Here's the language in the UI file.

    <mso:customUI xmlns:mso="http://schemas.microsoft.com/office/2009/07/customui"><mso:ribbon><mso:qat><mso:sharedControls><mso:control idQ="mso:FileOpen" visible="false" insertBeforeQ="mso:FileNewDefault"/><mso:control idQ="mso:FilePrintQuick" visible="false" insertBeforeQ="mso:FileNewDefault"/><mso:control idQ="mso:SpellingAndGrammar" visible="false" insertBeforeQ="mso:FileNewDefault"/><mso:control idQ="mso:TableDrawTable" visible="false" insertBeforeQ="mso:FileNewDefault"/><mso:control idQ="mso:FileOpenRecentFile" visible="false" insertBeforeQ="mso:FileNewDefault"/><mso:control idQ="mso:FileNewDefault" visible="true"/><mso:control idQ="mso:FileSave" visible="true"/><mso:control idQ="mso:FileSaveAs" visible="true" insertBeforeQ="mso:FileSendAsAttachment"/><mso:control idQ="mso:Undo" visible="true" insertBeforeQ="mso:FileSendAsAttachment"/><mso:control idQ="mso:RedoOrRepeat" visible="true" insertBeforeQ="mso:FileSendAsAttachment"/><mso:control idQ="mso:PrintPreviewAndPrint" visible="true" insertBeforeQ="mso:FileSendAsAttachment"/><mso:control idQ="mso:ReviewNewComment" visible="true" insertBeforeQ="mso:FileSendAsAttachment"/><mso:control idQ="mso:FileSendAsAttachment" visible="true"/></mso:sharedControls></mso:qat></mso:ribbon></mso:customUI>

    I'm completely flummoxed.  I really appreciate all the help.

    Was this answer helpful?

    0 comments No comments
  4. Anonymous
    2015-09-29T11:39:07+00:00

    Where would I find that file in my user profile?  When I look under Options - Quick Access Toolbar, only the MS buttons show up under the "for all documents" option, and only one set of custom buttons shows up under the document specific button.

    Is there any type of coding I can put in the template to ensure that only one set of buttons is displayed?

    Was this answer helpful?

    0 comments No comments
  5. Stefan Blom 342.4K Reputation points MVP Volunteer Moderator
    2015-09-28T23:36:18+00:00

    Word populates the Quick Access Toolbar with buttons saved in a separate file (which is saved in your user profile) but it also adds buttons saved in a document or template. Most likely, the same set of buttons is added from multiple sources.

    Was this answer helpful?

    0 comments No comments