Dear Excel Gurus,
I have created some buttons A,B,C, D,E,...etc on the ribbon using XML.
Also I have the VBA sub:
sub test(s as String,i as integer)
MsgBox s & i
end sub
I want the following to happen:
1. test("string1",10)
to be executed when the button A is pressed
2. test("string2",10)
to be executed when the button B is pressed
and so on ...
How to define the onaction attribute for each button A,B,C,...etc
I want to know if callback with parameter can be used at all
or i have to create each callback seperately.
Thanks to All
I have created some buttons A,B,C, D,E,...etc on the ribbon using XML.
Also I have the VBA sub:
sub test(s as String,i as integer)
MsgBox s & i
end sub
I want the following to happen:
1. test("string1",10)
to be executed when the button A is pressed
2. test("string2",10)
to be executed when the button B is pressed
and so on ...
How to define the onaction attribute for each button A,B,C,...etc
I want to know if callback with parameter can be used at all
or i have to create each callback seperately.
Thanks to All