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
 
Top