ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   VBA Code to monitor standard toolbar buttons. (https://www.excelbanter.com/excel-programming/448427-vba-code-monitor-standard-toolbar-buttons.html)

Honey[_2_]

VBA Code to monitor standard toolbar buttons.
 
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.



GS[_5_]

VBA Code to monitor standard toolbar buttons.
 
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




All times are GMT +1. The time now is 12:26 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com