VBA Code to monitor standard toolbar buttons.

H

Honey

I am looking for some sample VBA code to:
Monitor an existing standard toolbar button in Word or Excel.
When clicked, perform a short VBA routine to insert some text into
the document at the current position.

And also please explain terminology or point me to a tutorial.

Also, a little newbie tutorial on the while subject would help me
greatly.
Thank you.
 
G

GS

I am looking for some sample VBA code to:
Monitor an existing standard toolbar button in Word or Excel.
When clicked, perform a short VBA routine to insert some text
into the document at the current position.

And also please explain terminology or point me to a tutorial.

Also, a little newbie tutorial on the while subject would help me
greatly.
Thank you.

What you need to do with built-in menus is referred to as "hooking" the
menu so it runs your code instead of executing its normal action. Take
a look at some of my examples under the topic "Automatic cursor move"
posted by Michel Gauthier on Mar 14th here in this newsgroup
(microsoft.public.excel.programming). The procedure named
'ToggleMenuHooks' is what to look at...

--
Garry

Free usenet access at http://www.eternal-september.org
Classic VB Users Regroup!
comp.lang.basic.visual.misc
microsoft.public.vb.general.discussion
 

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