Jun 19, 2003 #2 vbkris Programmer Jan 20, 2003 5,994 IN why do u want to do it? Known is handfull, Unknown is worldfull Upvote 0 Downvote
Jun 19, 2003 1 #3 MatDavies Programmer Feb 22, 2001 243 GB you can use the mouse_event api call. there is an example of how to use it here http://www.vb-helper.com/howto_move_click_mouse.html regards Matt Upvote 0 Downvote
you can use the mouse_event api call. there is an example of how to use it here http://www.vb-helper.com/howto_move_click_mouse.html regards Matt
Jun 19, 2003 Thread starter #4 PockyBum522 Programmer Jun 10, 2003 239 US 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. Upvote 0 Downvote
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.
Jun 19, 2003 #5 keithf01 Programmer Jun 24, 2002 13 US 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 Upvote 0 Downvote
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
Jun 20, 2003 #6 vinceg Programmer Dec 5, 2001 9 US 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 Upvote 0 Downvote
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