A
Anne Pontillo
Hi,
I am working on a template that needs to insert a file into the new document
created by the template (using Word 2000). When the InsertFile dialog is
called, I need it to point to a specific directory (C:\Columbus Radiology
Emails), with the files of type set to Text files. I have the following
code:
Public Sub InsertAFile()
With Dialogs(wdDialogInsertFile)
.Name = "C:\Columbus Radiology Emails\*.txt"
.Show
End With
End Sub
When I run this code, it opens the InsertFile dialog box with files of type
set to Text files, however, it does not select the correct directory (it
goes to the default directory, My Documents). I can't set the default
document directory to the above, because this path is only used once a week
for this one particular task. The rest of the time, My Documents is used
for opening closing and saving documents.
Thanks in advance for any help.
I am working on a template that needs to insert a file into the new document
created by the template (using Word 2000). When the InsertFile dialog is
called, I need it to point to a specific directory (C:\Columbus Radiology
Emails), with the files of type set to Text files. I have the following
code:
Public Sub InsertAFile()
With Dialogs(wdDialogInsertFile)
.Name = "C:\Columbus Radiology Emails\*.txt"
.Show
End With
End Sub
When I run this code, it opens the InsertFile dialog box with files of type
set to Text files, however, it does not select the correct directory (it
goes to the default directory, My Documents). I can't set the default
document directory to the above, because this path is only used once a week
for this one particular task. The rest of the time, My Documents is used
for opening closing and saving documents.
Thanks in advance for any help.