Thread: Mouse Position
View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.programming
NickHK NickHK is offline
external usenet poster
 
Posts: 4,391
Default Mouse Position

Jason,
The various Mouse events (_MouseDown, _MouseMove, _MouseUp) give the
position of the Mouse:

Private Sub UserForm_MouseXXX(ByVal Button As Integer, ByVal Shift As
Integer, ByVal X As Single, ByVal Y As Single)

End Sub

Of course, if this is over a control, that control will fire the events
rather than the form.

NickHK

"Jason Zischke" wrote in message
...
Hi All

I was wondering if there is a function that give you the mouse position
because a have this one form I want to either double click a control on a
form and to position a frame control beside the mouse?

Any Reply would be greatly appriecated.

Jason