I was wondering if it's possible (or how) to make a button be clicked (simulated) for a form. Is there a command to make a form think it's been pressed?
I need to do this from within a module as the command buttons have too much code that wouldn't work directly in a module.
However, I can not image anything that could be run from a command button that couldn't be run from a Sub in a module. What do you have in this button?
However, I can not image anything that could be run from a command button that couldn't be run from a Sub in a module. What do you have in this button?
That gives me "method not found".
The button changes menu text, captions, and calls functions.
You will need to change the Buttons Property to PUBLIC from Private.. then
you can call it from another form.
Form1.Button1_Click()
_____________________________________________________________________
----If this post has helped you. Please take time to Rate it.
----If you've solved your problem, then please mark it as RESOLVED from Thread Tools.