Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How do I simulate a mouse click? 1

Status
Not open for further replies.

PockyBum522

Programmer
Jun 10, 2003
239
0
0
US
How do I simulate a mouse click?
 
why do u want to do it?

Known is handfull, Unknown is worldfull
 
I want to press a button in a program, but I thinkMatdavies post will work. If you have a better way to click a button in a program, let me know.
 
The easiest way to perform a button click from inside another sub or funtion is to call the function.

If you want to run a command button named cmdClearForm from inside another function just call cmdClearForm_Click and the code will run.

Good luck.

KF

 
you can also just set it's value property to true, as in;

cmdButton.Value = True

That will cause the click event to fire

Vince
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top