Word Custom Ribbon Duplicates After Saving

word custom ribbon vba
customize office ribbon
customize outlook ribbon
ribbon word
office 365 customize ribbon
customize ribbon windows 10
excel custom ribbon xml
how to customize ribbon in excel

I've created a custom tab in the MS Word 2007 ribbon. The tab and all its features work fine and is saved within a macro enabled template. However, upon creating a new document based on this template, after saving it as either a normal Word document or macro enabled document and then closing it: when I reopen this document file, the custom tab has duplicated itself!

I'm rather limited in the tools I can use due to this being developed on heavily locked down computers and network. I'm restricted to the Custom UI Editor tool for the XML aspects, and VBA. I've included the start of the XML that creates the toolbar. If using a qualified tab id, the tab contents duplicates within the same tab. If using a non-qualified tab name, the entire tab duplicates itself in the ribbon.

I'm at a complete loss with this. Both instances of the custom toolbar work fine - it's just the fact there's two of them and lots of people will be using this template!

<?xml version="1.0" encoding="UTF-8" standalone ="yes"?>
<customUI xmlns="http://schemas.microsoft.com/office/2006/01/customui">
  <ribbon>
    <tabs>
    <tab id="rxTabCompanyName"
    label="Company Name Toolbar"
    insertBeforeMso="TabHome"
    tag="CompanyNameToolbarTag">
    <group id="rxgrpCompanyNameReportStyles"
           label="Report Text Styles">
      <box id="rxboxStyleX"
           boxStyle="horizontal">
        <menu id="rxmnuAllStyles"
              label="All Styles"
              supertip="List all styles"
              showLabel="true"
              image="AtkStyles"
              size="normal">

etc...

Any suggestions would be much appreciated.

Duplicate custom tabs in Ribbon in Word 2010 and 2016, Save as .docx. On the 2016 system, we saved the templates to a "Workspace" folder on a server and reconfigured Word to look there. But  In this example, we are saving the customizations in Word. The same procedures works in the other Office programs. First, we will export the customized ribbon and Quick Access Toolbar to a file. In Word 2010 (or other Office program), click the File tab and select Options. In the left pane on the Word Options dialog box, click Customize Ribbon.

Did you open and create the new document in a different version of MS-Word. I have seen the duplicates happen using MS-Word 2010 if the template was created in an earlier version.

I have put an extra reference to the ribbon namespace so that the ribbon is loaded in 2007 or 2010:

customUI xmlns="http://schemas.microsoft.com/office/2009/07/customui"

instead of:

customUI xmlns="http://schemas.microsoft.com/office/2006/01/customui

Ron de Bruin's tips explain a similar problem for Excel: http://www.rondebruin.nl/ribbonx20072010.htm

duplicate groups on my custom tab :-( [Archive], If I open Word, then edit, save and close Word (and consequently the new document upon opening Word) WITHOUT using any of the custom functionality on the custom tab, 'Tell the ribbon to show 5 items in the dropdown Leave the default file name as is, or change the file name, then click Save To import your saved Ribbon and QAT customizations, follow these steps: Right-click anywhere on the QAT, and click "Customize Quick Access Toolbar" At the bottom right, click the Import/Export button Click Import customizations

Are you creating a new document based on a "dotm" template? OR Are you opening a "docm" file (used as a template) and save it under a new name?

Unlike Excel, Word links a new document to its template so the ribbon is not copied over to a new "instanced" document when it's based on a template (dotm).

If you're using a "docm" file as the template though, the (document level) ribbon will be copied to the "saved as" file.

This might not be what's happening but it's a possibility.

Make a custom ribbon tab for Word, Excel, PowerPoint or Outlook , Here's how to make a custom ribbon tab in Word, Excel, PowerPoint Some of these options are on various tabs of the default ribbon while Before Office 2007​, toolbar customization could be saved for particular documents. Excel trap in date calculations » Excel how to remove both items if a duplicate. In the Word Options dialog, choose Customize Ribbon in the left pane and then do the following: In the Main Tabs list (to the right under Customize The Ribbon), select Insert. We're adding the

Has a solution been found to this problem, as i'm experiencing the same issue whereby my .docm still contains customui?

my understanding of word documents and templates is that documents (.docx & docm) do not contain ribbon customisations whereas templates (.dotx & .dotm) do.

i have used the customui editor to remove the customisation, but still would like to know why this particular macro enabled document has retained the custom tab, since if i test this situation with a completely new template all subsequent documents do not contain customui.

How to add custom galleries to Word's QAT and ribbon for quick , Specifically, you can add custom galleries to the QAT in Word 2007 and later. galleries--15 built-in galleries, 15 custom galleries that seem to duplicate the first Click the Insert tab and then choose Save Selection To Quick Part After adding elements to a gallery, you can access them from that gallery,  The TM Save button in MS Word simplifies the process of saving Word documents into the Time Matters Document Management System. Find out how to add this button to MS Word, set the Word security settings, and add the TM Save button to the top toolbar (Quick Access bar) in MS Word 2010.

same Problem here... I don't know when it happens. But I want to share my Workaround to repair a lot of files. It's a Little vba script to remove the (doubled) custom Ribbon in each file in a Directory. Make sure that the .dotm file is not in the Directory!

Private Sub remover()
Dim re As String
Dim docdir As String

Dim fs As Object
Dim fVerz As Object
Dim docFiles As Object
Dim docFile As Object

Dim wdApp As Object
Dim wdDoc As Object

docdir = "C:\your\destination\path"

Set fs = CreateObject("scripting.FileSystemObject")
Set fVerz = fs.getFolder(docdir)
Set docFiles = fVerz.Files

'loop all files
For Each docFile In docFiles
    If InStr(docFile, "") > 0 Then
        re = Shell("zip """ & docFile & """ -d ""*customUI.xml""", vbNormalFocus)
    End If
Next docFile 
End Sub

Change built-in groups in the Ribbon in Excel 2007-2016, We can hide a built-in group and then duplicate it with RibbonX. On my Ribbon page you can find examples of how you can add a custom button. First we create a new workbook and save it with the name test.xlsx and we close this  Great for weddings and corporate brands. Can ship within 24 hours.

Transferring Ribbon Customizations (Microsoft Excel), Ian created a macro and then customized the ribbon with a button that executes that macro. Excel displays the File Save dialog box. At the upper-right corner of the dialog box, use the Customize Quick Access Toolbar In other words, Ian's customizations wouldn't be added to those customizations; 

Duplicating Styles without Dependency (Microsoft , When you create a new style in Word, that style is typically based on an of the ribbon and then choose Save Selection as a New Quick Style.

Modifying the Quick Access Toolbar (QAT) in Microsoft Word, See also Modifying the QAT and Ribbon in Microsoft Word. How to change -- Files that Hold Changes -- Storing Changes on the Ribbon and picking the choice of Customize Quick Access Toolbar. While you can store QAT modifications elsewhere, you cannot change the default storage locations.

Comments
  • Is this a global template that lives in the Startup folder or a template that you load into a document?
  • In this scenario, the first template would become an addin (loaded automatically from the startup folder) and would need to figure out if the right kind of document is loaded to show the ribbon or not.