What Word Opens To

What Word Opens To

Post by Sandr » Fri, 23 Jul 2004 04:13:42


I am wondering if you can choose what word opens to. For
instance could I open word and have it automatically go to
the "File Open" box? If this is possible how would I go
about doing such?

Please help.

Thank you
Sandra
 
 
 

What Word Opens To

Post by Greg » Fri, 23 Jul 2004 05:49:02

Sandra,

Yes. You could do this with an AutoExec macro:

Sub AutoExec()

Set Dialog = Dialogs(wdDialogFileOpen)
ChangeFileOpenDirectory "C:\"
Dialog.Display

End Sub

AutoExec macros run with the application starts. The code
above will open Word with the File open dialog box
displayed and pointing to the root directory. Of course
you can alter this to display whatever valid directory you
choose.

Also see Controlling how word starts in Word help. You
may elect to name this macro something else and start word
with a \m switch.

HTH

to

 
 
 

What Word Opens To

Post by Sandr » Fri, 23 Jul 2004 23:54:53

Thanx.

code
you
word
For
 
 
 

What Word Opens To

Post by Susa » Sun, 25 Jul 2004 01:32:29

You could edit the normal.dot and in the
Sub Autoexec()
Dim dlgOpen As FileDialog

Set dlgOpen = Application.FileDialog
(FileDialogType:=msoFileDialogOpen)
dlgOpen.Show
End Sub

.. but come on' that is so limited as compared to just
starting Word .. I can't figure out why you would really
want to do this.



For
to