ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Mouse Coordinates (https://www.excelbanter.com/excel-programming/412696-mouse-coordinates.html)

kirkm[_7_]

Mouse Coordinates
 

Is there any way to get the X & Y position of the mouse, on a Form.

I want to trap a mouse click event relative to position.

Thanks - Kirk

Rick Rothstein \(MVP - VB\)[_2144_]

Mouse Coordinates
 
By Form, do you mean UserForm? The UserForm's MouseDown, MouseMove and
MouseUp events return the mouse coordinates relative to the UserForm via the
X and Y arguments. Can you make use of those? If not, then you are going to
have to describe your set up in a lot more detail than you have given us so
far.

Rick


"kirkm" wrote in message
...

Is there any way to get the X & Y position of the mouse, on a Form.

I want to trap a mouse click event relative to position.

Thanks - Kirk



kirkm[_7_]

Mouse Coordinates
 
On Mon, 16 Jun 2008 23:36:27 -0400, "Rick Rothstein \(MVP - VB\)"
wrote:

By Form, do you mean UserForm? The UserForm's MouseDown, MouseMove and
MouseUp events return the mouse coordinates relative to the UserForm via the
X and Y arguments. Can you make use of those?


Thanks Rick, that's exactly what I wanted but couldn't remember.

Cheers - Kirk


All times are GMT +1. The time now is 11:29 PM.

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