I have a macro that creates a custom button on the toolbar. I want it to be automatically assigned to another macro. Here's the code:
Dim msoButton As CommandBarButton
Add(msoControlButton, 2950, , 4)
msoButton.OnAction = call print_claim
msoButton.Execute = print_claim
Nothing works. Please help?