using the created buttop

T

Tobias Bergmann

Hi,
I'm a com addin using VB6. I created a CommandBarButton and now I want to
use it.
I tried it like this :
----------------------------------------------------------
Public WithEvents cmdCom As CommandBarButton

Private Sub cmdCom_Click(ByVal Ctrl As Office.CommandBarButton,
CancelDefault As Boolean)

If Ctrl.OnAction = "ctlStore" Then
ctlStore
End If

End Sub
 

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