PDA

View Full Version : Solved: Open Word Document on Startup?



clhare
01-17-2007, 06:34 AM
Is it possible to have a document open automatically every time you start Word? I can't find anything on this in my books or on the net.

Thanks!

mdmackillop
01-17-2007, 06:39 AM
Put your file into the Startup Folder
Look in Tools/Options/File Locations to see where it is.
Templates containing code can also be placed here.

clhare
01-17-2007, 06:53 AM
I tried copying my .doc file to Startup, but it didn't open when I opened Word.

mdmackillop
01-17-2007, 07:16 AM
I'm sure it used to work that way, but I agree, it doesn't! :(
Maybe someone else will have the solution.

fumei
01-17-2007, 09:52 AM
Why do you want to do this? Do you really want a specific document to open every time you start Word? EVERY time?

clhare
01-17-2007, 10:00 AM
I have to keep track of everything I work on. I always forget to write it down, so thought if I could create a log document and get it to pop-up all the time, I won't keep forgetting!

mileski
01-17-2007, 10:02 AM
Is it possible to have a document open automatically every time you start Word? I can't find anything on this in my books or on the net.

Thanks!

I don't know why do you want to do that :) But, here is a way. Open your normal.dot for editing.

Now in VBA Editor, create a Module called "AutoExec".

Put there a:


Sub Main()

Documents.Open "Path to the documet" ... 'see specs for more information

End Sub



Save it and now you are ready. Every time you start word it will open this document.


Cheers.

fumei
01-17-2007, 10:26 AM
No need to create a module. Just put the AutoExec procedure in the ThisDocument module of Normal.dot, which already exists.Sub AutoExec()
Documents.Open FileName:="C:\MyFiles\dropCaps.doc"
End Subwill open the file dropCaps.doc every time Word is opened.

clhare
01-17-2007, 01:04 PM
Putting the code in "This Document" of Normal.dot did the trick.

Thanks!