P
pcouas
Hi,
I search to create a Menu on two XLA, but with same Sub Name.
Currently Excel found first XLA in mémory
' add menuitem to menu
With cbMenu.Controls.Add(msoControlButton, 1, , , True)
.Caption = "&B5"
.OnAction = "b5sqlstd.xla!cree_requete"
End With
' add menuitem to menu
With cbMenu.Controls.Add(msoControlButton, 1, , , True)
.Caption = "&T5"
.OnAction = "t5sqlstd.xla!cree_requete
End With
Regards
Philippe
I search to create a Menu on two XLA, but with same Sub Name.
Currently Excel found first XLA in mémory
' add menuitem to menu
With cbMenu.Controls.Add(msoControlButton, 1, , , True)
.Caption = "&B5"
.OnAction = "b5sqlstd.xla!cree_requete"
End With
' add menuitem to menu
With cbMenu.Controls.Add(msoControlButton, 1, , , True)
.Caption = "&T5"
.OnAction = "t5sqlstd.xla!cree_requete
End With
Regards
Philippe