Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.word.vba.general,microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default 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.


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 226
Default 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


Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Standard Toolbar buttons disappear. Jim W Setting up and Configuration of Excel 7 August 6th 08 06:08 PM
Shortcuts for toolbar buttons/view code of toolbar buttons ericm[_2_] Excel Programming 2 July 23rd 07 09:49 PM
Shortcuts for toolbar buttons/view code of toolbar buttons ericm[_2_] Excel Programming 1 July 23rd 07 09:00 PM
How can you replicate macros for buttons on the Standard toolbar? Suzi Excel Discussion (Misc queries) 1 February 16th 07 09:53 PM
custom toolbar buttons are saved where? Excel loads twice bymistake and all my custom toolbar buttons get gone!!! Kevin Waite Excel Programming 2 March 3rd 04 03:31 PM


All times are GMT +1. The time now is 09:20 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"