Click here to Skip to main content
15,891,757 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hi
I need to change the name of the Insert tab dynamically using C# addin. I am using MS Office 2007. I tried the following xml, I can see my custom group and button in insert tab but tab name is not getting changed.

XML
<?xml version="1.0" encoding="utf-8"?>
<customUI xmlns="http://schemas.microsoft.com/office/2006/01/customui" >
  <ribbon>
    <tabs>
      <tab idMso="TabInsert" getLabel="GetLabelText">
        <group id="CustomGroup" label="MyGroup" insertAfterMso="GroupInsertTables">
          <button id="Open" getLabel="GetLabelText" onAction="OnOpenClick"/>          
        </group >
      </tab>
    </tabs>    
  </ribbon>
</customUI>



GetLabelText function for button is getting called but for tab it is not. If I use label="MyInsert" attribute it is working but getLabel attribute is not working for built-in tabs. Is this property not supported for built-in tabs ? or Am I missing something?
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900