Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 147
Default Mouse Position

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
  #2   Report Post  
Posted to microsoft.public.excel.programming
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



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Position of the mouse pointer Liam Excel Programming 5 October 26th 06 02:20 PM
State Map, Mouse Position Question [email protected] Excel Programming 0 September 20th 06 02:55 PM
mouse position in EXCEL Franz Excel Programming 6 February 11th 05 05:55 PM
Mouse Position Max Potters Excel Programming 3 September 28th 04 06:09 PM
position mouse cursor in msg box swatsp0p[_2_] Excel Programming 2 September 24th 04 07:12 AM


All times are GMT +1. The time now is 12:59 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"