CommandBarButton OnAction

C

Cindy M.

Hi =?Utf-8?B?Q29uc3RhbnRpbiBDaGlvbmFz?=,
How we can send a parameter to the procedure we call with OnAction?
You cannot. You have to place the parameter information somewhere
where the OnAction macro can read it. Every CommandBar control has a
Tag and a Parameter property; usually, the information for a
particular control is placed in one of those. To get which control
was "clicked" so that you can read this information, use
CommandBars.ActionControl.

Cindy Meister
INTER-Solutions, Switzerland
http://homepage.swissonline.ch/cindymeister (last update Jun 17 2005)
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 :)
 
C

Constantin Chionas

Thank you for your help.

Cindy M. said:
Hi =?Utf-8?B?Q29uc3RhbnRpbiBDaGlvbmFz?=,

You cannot. You have to place the parameter information somewhere
where the OnAction macro can read it. Every CommandBar control has a
Tag and a Parameter property; usually, the information for a
particular control is placed in one of those. To get which control
was "clicked" so that you can read this information, use
CommandBars.ActionControl.

Cindy Meister
INTER-Solutions, Switzerland
http://homepage.swissonline.ch/cindymeister (last update Jun 17 2005)


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