Dynamic Ribbon without a COM AddIn

J

Jeff Tindall

We are currently automating Word 2003 and previous just fine. We add a
custom toolbar to the application using automation in the following way:

CommandBar custombar = Application.CommandBars.Add(...);
Button custombutton = custombar.Buttons.Add(...);

This still works in Word 2007, but really looks like crap on the Add-In tab.
We used to have an AddIn and hated working with it and all sorts of other
issues that came up with deployment, suport, and maintenance.

Is there any method to modify the Word 2007 ribbon without using an AddIn?

Thanks,
~Jeff
 
P

Patrick Schmid [MVP]

The ribbon is customized via RibbonX, whether you use an add-in or not.
So you need to write the RibbonX for what you want to do, embed the
RibbonX file into a Word 2007 template or document using the Custom UI
Editor, and then implement the callbacks in VBA.
Take a look at http://pschmid.net/office2007/ribbonx to get started.

Patrick Schmid [OneNote MVP]
--------------
http://pschmid.net
***
Outlook 2007 Performance Update: http://pschmid.net/blog/2007/04/13/105
Office 2007 RTM Issues: http://pschmid.net/blog/2006/11/13/80
***
Customize Office 2007: http://pschmid.net/office2007/customize
RibbonCustomizer Add-In: http://ribboncustomizer.com
OneNote 2007: http://pschmid.net/office2007/onenote
***
Subscribe to my Office 2007 blog: http://pschmid.net/blog/feed
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top