PDA

View Full Version : Rename AddIn



mike009
12-03-2008, 07:58 AM
Hi all,

I have a word template that contain an addins, this addin is calling a method from macro ro whatever.;...

I want to rename the tab "add-ins" to something else
inside this addin there is clickable label that used to call a method from the macro

so,

Add-in -------------> rename to "MyTab"
addIn icon ---------> change the icon

I used to use the tool office 2007 custom UI, but when i open it and import the template (whitch is normal dot file ) not macro enabled i don't see the add-in tab?

how this is clear

thank in advance

Nelviticus
12-03-2008, 09:49 AM
If I understand you correctly you're using Word 2007 and you have an old pre-Office 2007 template (.dot) which has a toolbar.

The best thing to do is create a new Office 2007 macro-enabled template (.dotm) and copy the code to it from your old template. Any function that you want to link to a button will need to have 'ByRef control As IRibbonControl' added as a parameter, so
Public Sub RunSomeCode()
becomes
Public Sub RunSomeCode(ByRef control As IRibbonControl)
You can then use the Office 2007 Custom UI Editor to add ribbon tabs and buttons.