Toolbars command association

  • Thread starter Gerard Duquette
  • Start date
G

Gerard Duquette

Hi,
This is probably a dumb question but I cant find the answer.
Is there a tool or a way to find out what function/macro a toolbar button is
calling? This would tell me what function the button is calling after it has
been created.

Thank you
 
W

Word Heretic

G'day Gerard Duquette <[email protected]>,

From the VBE, you can interrogate the
CommandBar("Whatever").Controls(<serialise>).Onaction

Steve Hudson - Word Heretic

steve from wordheretic.com (Email replies require payment)
Without prejudice


Gerard Duquette reckoned:
 
C

Cindy M -WordMVP-

Hi =?Utf-8?B?R2VyYXJkIER1cXVldHRl?=,
Is there a tool or a way to find out what function/macro a toolbar button is
calling? This would tell me what function the button is calling after it has
been created.
CommandBars("Name").Controls(index).OnAction

Note that this only works for buttons to which you've assigned a macro.
Built-in commands have an ID.

Cindy Meister
INTER-Solutions, Switzerland
http://homepage.swissonline.ch/cindymeister (last update Jun 8 2004)
http://www.word.mvps.org

This reply is posted in the Newsgroup; please post any follow question or reply
in the newsgroup and not by e-mail :)
 

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