Hello
I have an xla file with private toolbar and few buttons.
When I click on a button, the assigned macro starts to run.
I am trying to assign two different processes to a button: one for click, and the other for right-click.
my question is:
is it possible assign two macros to a toolbar buttons. one for click and second for right-click.
or
is it possible to assign a macro to the click, and to open a customized toolbar on right click of the same button ?
currently the button is assigned a macro using this code:
thanks for help
I have an xla file with private toolbar and few buttons.
When I click on a button, the assigned macro starts to run.
I am trying to assign two different processes to a button: one for click, and the other for right-click.
my question is:
is it possible assign two macros to a toolbar buttons. one for click and second for right-click.
or
is it possible to assign a macro to the click, and to open a customized toolbar on right click of the same button ?
currently the button is assigned a macro using this code:
Code:
With .Controls.add(Type:=msoControlButton)
.OnAction = "'" & ThisWorkbook.Name & "'!" & macroname
.Style = msoButtonIconAndCaption
.FaceId = iconnum(iCtr)
.TooltipText = tt
End With