How do I call a COM Add-in from VBA?

J

John Murray

I just wrote my first COM Add-in using Visual Studio 2003. I have a button
on a menu bar that causes a call back to be run which pops up a message box.

What do I need to do to call the callback from a VBA macro associated with a
particular template?

Thank you,

John Murray
 
C

Cindy M -WordMVP-

Hi John,
I just wrote my first COM Add-in using Visual Studio 2003. I have a button
on a menu bar that causes a call back to be run which pops up a message box.

What do I need to do to call the callback from a VBA macro associated with a
particular template?
Hmmm. You may be using "callback" differently than I do, so I'd like to clarify
my understanding of what you have:

You set up a COM Addin using .NET Framework. It adds a button to Word's menu
bar (in which CustomizationContext?). When you click the button, it shows a
.NET MessageBox? (Not a VBA MsgBox)

And what you'd like is a callback in Word that will do what? (Usually, the
request is to link a keyboard shortcut to the Addin proc, or something like
that.)

Cindy Meister
INTER-Solutions, Switzerland
http://homepage.swissonline.ch/cindymeister (last update Jun 8 2004)
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 :)
 

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