cursor or mouse move

  • Thread starter Thread starter matt dunbar
  • Start date Start date
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
 
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
'------------------------------------------
 
Back
Top