Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

ribbon vb net 2008

8 views
Skip to first unread message

Jserrano

unread,
May 16, 2009, 12:55:53 PM5/16/09
to
Hi ,

I want to know whether is possible to add buttons from Word to my ribbon.vb

It is to say: Show the control from Word and run the function from Word
directly.

For example in this case I want to add to my ribbon the control numbering
from Word.

Best regards


Cindy M.

unread,
May 26, 2009, 5:28:33 AM5/26/09
to
Hi Jserrano,

I'm not sure I really understand your question, but it sounds like you're
asking whether you can use Word VBA to add things to your Ribbon?

No, that's not possible. The Ribbon must be fully defined before it is loaded
by the Office application (Word). It can contain hidden or disabled controls
that the callbacks can dynamically display or enable, but nothing new can be
added.

If you want code outside the project that contains the Ribbon to influence
the Ribbon, then the project must expose methods for doing this. For VBA,
this could be COMVisible methods in a VSTO Add-in, for example.

Cindy Meister
INTER-Solutions, Switzerland
http://homepage.swissonline.ch/cindymeister (last update Jun 17 2005)
http://www.word.mvps.org

This reply is posted in the Newsgroup; please post any follow question or
reply in the newsgroup and not by e-mail :-)

0 new messages