Inserting a text file

A

Anne Pontillo

Hi,

I have a question. I am working on a template that when run will have a
text file inserted into the document created by the template, cleaned up and
then saved.

I am having a problem with the insert file portion. When the template is
run, I want the macro to open the Insert File dialog box with the My
Documents folder as the active folder and the File Type to be set to ".txt".
Can anyone help me with this?

Thanks,
Anne
 
W

Word Heretic

G'day "Anne Pontillo" <[email protected]>,

the file open dialog sux. However, if you use BuiltInDialogs then you
can set the filename to be ".txt" before you show it.


Anne Pontillo said:
Hi,

I have a question. I am working on a template that when run will have a
text file inserted into the document created by the template, cleaned up and
then saved.

I am having a problem with the insert file portion. When the template is
run, I want the macro to open the Insert File dialog box with the My
Documents folder as the active folder and the File Type to be set to ".txt".
Can anyone help me with this?

Thanks,
Anne

Steve Hudson

Word Heretic, Sydney, Australia
Tricky stuff with Word or words for you.
Email: [email protected]
Products: http://www.geocities.com/word_heretic/products.html
Spellbooks: 728 pages of dump left and dropping...

The VBA Beginner's Spellbook: For all VBA users.
 
Top