ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   SendKeys (https://www.excelbanter.com/excel-programming/302987-sendkeys.html)

mike

SendKeys
 
Hi there,

Through this newsgroup I just discovered all the cool
things I can do with "SendKeys".
I was wondering if it's also possible to "simulate" mouse-
clicks (left and right clicks) in a similar way??

Thanx in advance for you help

Mike

Vasant Nanavati

SendKeys
 
No.

Also, using SendKeys is generally inadvisable if another alternative is
available (which it usually is).

--

Vasant

"Mike" wrote in message
...
Hi there,

Through this newsgroup I just discovered all the cool
things I can do with "SendKeys".
I was wondering if it's also possible to "simulate" mouse-
clicks (left and right clicks) in a similar way??

Thanx in advance for you help

Mike




Don Wiss

SendKeys
 
"Vasant Nanavati" <vasantn *AT* aol *DOT* com wrote:

Also, using SendKeys is generally inadvisable if another alternative is
available (which it usually is).


The one usage where I found SendKeys to be the best is after the user has
clicked a Control Toolbar check box. It sends the focus back to where ever
it was before. You do need to have a flag to be sure this is only done when
the user checks, and not another macro running.

Don <donwiss at panix.com.


All times are GMT +1. The time now is 10:43 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com