View Single Post
  #4   Report Post  
Posted to microsoft.public.excel.programming
Tom Ogilvy Tom Ogilvy is offline
external usenet poster
 
Posts: 27,285
Default VBA to control the Mouse

I have no idea if you can do that - but if you can, I would say the approach
definitely isn't a route heavily travelled.

--
Regards,
Tom Ogilvy

"DejaVu" wrote in
message ...

Thanks for the reply Tom.

I'm still not sure how to handle this though... I don't want to click
anywhere on a worksheet (or even in excel for that matter). I need to
mouse click on another program. Can I use VB code to control what the
mouse does, or can I use some sort of API call to (1) Open the program
window and (2) make the mouse click on a specified pixel or "latitude"
& "longitude" on my screen? I thought I read something that it was
possible to input the coordinates and have the mouse move there and
click on command... am I way off??

Thanks,

DejaVu


--
DejaVu
------------------------------------------------------------------------
DejaVu's Profile:

http://www.excelforum.com/member.php...o&userid=22629
View this thread: http://www.excelforum.com/showthread...hreadid=476871