VBA Code to monitor standard toolbar buttons.

  • Thread starter Thread starter Honey
  • Start date Start date
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.
 
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
 
Back
Top