Left click (1 Viewer)

Pete490h

Member
Local time
Today, 04:46
Joined
Jan 18, 2021
Messages
44
Hi,
does anyone know how to Sendkey a mouse left click within a macro
 

arnelgp

..forever waiting... waiting for jellybean!
Local time
Today, 11:46
Joined
May 7, 2009
Messages
19,247
Can you use vba.
You can directly Call the mouse Click event.
 

Pete490h

Member
Local time
Today, 04:46
Joined
Jan 18, 2021
Messages
44
hi @Pete490h

SendKeys only works for KEYS, not the mouse. What are you trying to do?
Hi, I have a routine that has been in use for many years and I’m trying to automate it and I’m 98% there with a macro
The last part of the routine opens an existing form and I want to simply click a field, which itself opens up another form where the remaining macro actions run
 

isladogs

MVP / VIP
Local time
Today, 04:46
Joined
Jan 14, 2017
Messages
18,246
Forget the mouse click
You can use a function in your macro to run the click event on your form field....
However, much easier to do this with VBA.
 

Users who are viewing this thread

Top Bottom