Which button clicked on custom toolbar

Which button clicked on custom toolbar

OceanaPolynom
Advocate Advocate
392 Views
2 Replies
Message 1 of 3

Which button clicked on custom toolbar

OceanaPolynom
Advocate
Advocate
Hello
I have created a custom toolbar with 4 buttons to run vba macros and other applications in vb6.
I would like to know if it possible to know which button was clicked when I get to the vba code.
I want to do different things from the same dvb file depending on which button was clicked

Thanks
John
0 Likes
393 Views
2 Replies
Replies (2)
Message 2 of 3

Anonymous
Not applicable
Hi John,

Presumably each button calls a different Sub in your program. The subs
can easily be set up to know this information.

MsgBox " I was called from the the second icon",vbInformation


Regards

Laurie Comerford

On 8/04/2010 10:14 PM, OceanaPolynom wrote:
> Hello
> I have created a custom toolbar with 4 buttons to run vba macros and other applications in vb6.
> I would like to know if it possible to know which button was clicked when I get to the vba code.
> I want to do different things from the same dvb file depending on which button was clicked
>
> Thanks
> John
0 Likes
Message 3 of 3

OceanaPolynom
Advocate
Advocate
Hello

Thanks very much, now I get it

John
0 Likes