Information générale
Catégorie:
COM/DCOM et OLE Automation
Larry,
I've tried to implement your example. The idea you stated is exactly what I want to do. That is, to have multiple buttons run the same code and use the tag property of the button to discern exactly what button was clicked.
Prior to Event Binding, I have been setting the onaction property to run a VBA macro that I had stored in a template that I'm attaching to the document via automation. Your example sets the OnAction to 'MyTest'. Is your example designed to run a macro that is stored somewhere? It does not seem that the _CommandBarButtonEvents_Click procedure ever runs even though I'm getting confirmation that the binding occured. EVENTHANDLER(oMyCB,oCB) returns .t.
I don't like asking so many questions, I'd rather learn on my own but I can't find a source of information on this subject. If you know of a good one please pass it along.
Thanks for your help, John.
Précédent
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement