Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Word / Programming / March 2005

Tip: Looking for answers? Try searching our database.

Identifying Macros called by Toolbar Buttons

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Walter K. - 17 Mar 2005 17:53 GMT
How do you identify which macro is called by a toolbar button after the
button name has been shortened or renamed (in Word 2003)?

Over the years our office has developed numerous macros called by toolbar
buttons.  The button names have been changed and don't identify the specific
macro name.  Often we have different versions of a macro and I can't identify
which version of a macro is called by a specific toolbar button on each
computer.  While I could insert a message box statement into each macro that
would display the macro name when run, this would be very laborious for the
50 - 60 macros we are using.
Signature

Walter Klein

Jonathan West - 18 Mar 2005 00:58 GMT
Hi Walter,

The macro called by a toolbar button is identified by the button's OnAction
property.

Unfortunately, you need to write a VBA macro in order to read the Onaction
property of a button...

Signature

Regards
Jonathan West - Word MVP
www.intelligentdocuments.co.uk
Please reply to the newsgroup
Keep your VBA code safe, sign the ClassicVB petition www.classicvb.org

> How do you identify which macro is called by a toolbar button after the
> button name has been shortened or renamed (in Word 2003)?
[quoted text clipped - 10 lines]
> the
> 50 - 60 macros we are using.
Walter K. - 18 Mar 2005 14:35 GMT
Thanks Jonathan;
I was hoping for a simpler answer but I'll see if I can write the code to
retrieve the OnAction property.

Walter K.

> Hi Walter,
>
[quoted text clipped - 18 lines]
> > the
> > 50 - 60 macros we are using.

Rate this thread:






 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.