i would like a code to execute automatically a button after a action( like after shutdown a software or after a checkbox validated or a simple event) thank you for your answer
Printable View
i would like a code to execute automatically a button after a action( like after shutdown a software or after a checkbox validated or a simple event) thank you for your answer
Thats quite a broad general task you are asking. Perhaps defining it more detail will help to facilitate an answer.
Button in your program?
Yeah. There's definitely a different answer if this button is one that you are writing the code for, as opposed to one in a different application. A button in your application is just a "do this now" thing. Any code in the click event can be put into a Sub, which is then called from the button click...and anywhere else in the program you want to call that Sub from. No clicking necessary. Of course, this only works under a set of assumptions as to what you are actually trying to do, and those assumptions are nothing more than guesses.