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 2006

Tip: Looking for answers? Try searching our database.

AutoOpen

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Gitche Gumee - 22 Nov 2006 22:24 GMT
My AutoOpen macro has stopped working. It's this:
ActiveWindow.Caption = ActiveDocument.FullName

If I open a document using File | Open, it works.

Double-clicking a document name or icon does not work. Once the document is
open, though, I can run the AutoOpen macro manually and it works.

Any thoughts?

Windows XP, Office 2002
Helmut Weber - 22 Nov 2006 22:48 GMT
Hi Gitche Gumee,

try:

Sub autoopen()
MsgBox "autoopen"
Application.OnTime _
When:=Now + TimeValue("00:00:02"), _
   Name:="autoopenX"

End Sub
Sub autoopenX()
ActiveWindow.Caption = ActiveDocument.FullName
End Sub

There were dicussions here on
"how to determine if a document is fully loaded",
just in case you want to know it all.

It is a matter of multitasking,
asynchronous processing,
which might not have been a good idea after all,
at least in the way it was implemented.

Signature

Greetings from Bavaria, Germany

Helmut Weber, MVP WordVBA

Win XP, Office 2003
"red.sys" & Chr$(64) & "t-online.de"

Gitche Gumee - 28 Nov 2006 17:55 GMT
After much wailing and gnashing of teeth, I have solved the problem. The DOC
file extension had become disassociated from Word. In Folder Options, the DOC
extension was listed as file type "DOC file" rather than "Microsoft Word
Document." Word still opened up the document but without running the autoopen
macro.

I reassigned the DOC extension to Microsoft Word, and all is well. Thanks
for your assistance.

> Hi Gitche Gumee,
>
[quoted text clipped - 19 lines]
> which might not have been a good idea after all,
> at least in the way it was implemented.

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.