Hi RandyDtg1,
Y'll have to kick in relevant parts of yr code.
It's kinda hard to look at yr problem without ...
Krgrds,
Perry
> Mouse Move Causes Automation Error
> I want to use mouse move to close a second form (hide or unload)
[quoted text clipped - 6 lines]
> Any suggestions would be appreciated.
> TIA
RandyDtg1 - 17 Nov 2004 02:37 GMT
The code I have is:
Private Sub UserForm_MouseMove(ByVal Button As Integer, ByVal Shift As Integer,
ByVal X As Single, ByVal Y As Single)
Unload Me
End Sub
It works fine when I test the program, opened as randy.dot,
I then re-start Word with rand.dot in the word startup folder.
Then the code causes an automation error when the mouse move occurs. This is a
secondary form. It appears that the error is with the first form, and that the
secondary form is closed.
This is my attempt to display a message that is easily removed, like with the
mouse move over the secondary form.
Any ideas or suggestions to try?