Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Word / Programming / November 2004

Tip: Looking for answers? Try searching our database.

Mouse Move to close user form Causes Automation Error

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
RandyDtg1 - 12 Nov 2004 00:23 GMT
Mouse Move Causes Automation Error
I want to use mouse move to close a second form (hide or unload)
It works fine until I make it a .dot in the startup folder, then I get an
Automation error.

I've tried several things, including using 'on error resume', but can not get
it to work as a .dot in Start Up.

Any suggestions would be appreciated.
TIA
Perry - 15 Nov 2004 00:36 GMT
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?

Rate this thread:






 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.