Implementing OnAction property in my own CommandBarControl interface
-
Good morning community, Visual Basic reference widely shows how to create custom commandbar controls and how to handle events from them. One of the popular ways to do this for MS Office application is to assign the "OnAction" property for a created control. (e.g. cbCtrl.OnAction = "MyActionHandler") But how is this all implemented?:confused: I am going to provide the same functionality for my CommandBarControl object. Firstly, I thought that Visual Basic queries for OnAction property and calls the function on its own, but I was wrong - my implementation of get_OnAction was never called.:( Could you please tell me about how this OnAction functionality is implemented. Thanks. __________________ © Vitaly A. Genkin If an application works, then the number of bugs is even.