Moving the mouse pointer by VBA code

N

Nick

Can anyone help me to use VBA code to move the mouse
pointer to a specific part of the screen? I need the
pointer to move over a command button so that when the
left mouse button is clicked, the macro assigned to it
will run.

Thanks,

Nick
 
P

Patrick Ogenstad

Hi Nick,

Why do you have to move the pointer, why don't you just run the macro
assigned to the button with the VBA code you were going to use to move the
mouse pointer?

// Patrick
 
Top