Building a better mouse trap


Posted by Joe C on December 03, 2001 6:25 AM

Is there a way to turn of the mouse in a vba program. I am using send keys to transfer data to mainframe screens and if someone plays with the mouse it seems to throw the thing off.



Posted by Ivan F Moala on December 04, 2001 2:38 AM

Try;

Declare Function ShowCursor& Lib "user32" (ByVal bShow As Long)

Sub Hide_Cursor()
ShowCursor 0
End Sub

Sub Show_Cursor()
ShowCursor 1
End Sub


Ivan