calling an event from a procedure

Jackeb

Board Regular
Joined
Mar 20, 2002
Messages
81
basically how??

if i have a useform with two command buttons on it, what code do i use to recognise that it has been pressed....

without using the sub buttons_click() type approach
 

Excel Facts

Excel Joke
Why can't spreadsheets drive cars? They crash too often!
Well, you would probably HAVE to use the Private Sub CommandButton1_Click() Event, but you could set a variables value once the button is clicked and have the other event check THAT value. I don't know why that would be neccesary, but I think it would work for you.
 
Upvote 0

Forum statistics

Threads
1,214,403
Messages
6,119,308
Members
448,886
Latest member
GBCTeacher

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top