I am trying a very simple code for adding a control, named Markov, in Tools and linking it to a macro when the addin is installed.
Private Sub Workbook_AddinInstall()
With Application.CommandBars("Tools").Controls.Add
.Caption = "Markov"
.OnAction = "markov"
End With
End Sub
The big problem is that after installation nothing happens.
If I go in VB Editor and click Run the control Markov is added and every thing is going well then. I have tried many other examples but is all the same. The addin appears in the addins manager and it works fine if I fire the run button but not at the installation event.
Thanks a lot!
Bookmarks