cursor or mouse move

M

matt dunbar

hi all

anyone suggest how i might include in a macro some code to make the
mouse/cursor (arrow or cross shape) goto or hover in a specific area of
the screen as sometimes it appears above an object after a macro has
fired on one worksheet and when it arrives at the destination sheet it
is over an object and a desciptive box appears intrusively

or is it possible to disable within an XL file this descriptive box
feature - however i still wish to retain the hour glass and hand icons
that appear when you hover over a button , or it is in proceess
executing a macro

thanks, matt

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
 
B

BrianB

This will move the mouse cursor to the top left of the active screen.
You can play with other co-ordinates to see

'--------------------------------------
Private Declare Function SetCursorPos Lib "User32" _
(ByVal x As Long, ByVal y As Long) As Long

Sub Mouse_TopLeft()
SetCursorPos 0, 0
End Sub
'------------------------------------------
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top