Word 2003 - Form Requests Location of Insert File

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I know that in my search I have stumbled all over the answer to my question.
Nevertheless, I can't seem to find exactly what I want. Or at least a
solution that should be as straight forward as I think it should be. Here is
the scenario:

I am building a form in Word 2003. At some point in the doc (possibly via a
specific field type?) the user would be prompted with an "Open File" or
"Insert File" dialog where they would then browse to and select the file to
be inserted. Upon being inserted into the form, all attributes of the form
(i.e. font, size, margins, header & footer) will be respected and/or applied
to the inserted text, when appropriate.

The file to be inserted will always be a .txt file that is generated via a
script in the OS. The location of that file, however, is never the same -
hence the need for a dialog box.

Suggestions and advice would be most appreciated.

Cheers!
Murphy
 
Hi =?Utf-8?B?cGZtdXJwaHk=?=,

If we're talking form fields, then the macro would need to link to the Exit or
Enter property of a field or fields. Or you'd need a button in a toolbar. Or a
macro button.

Office 2003 has a FileDialog object (depends off the Application object) you can
use to present a filtered file list. Do a Google Groups search on that and you
should turn up some samples and discussions.
I know that in my search I have stumbled all over the answer to my question.
Nevertheless, I can't seem to find exactly what I want. Or at least a
solution that should be as straight forward as I think it should be. Here is
the scenario:

I am building a form in Word 2003. At some point in the doc (possibly via a
specific field type?) the user would be prompted with an "Open File" or
"Insert File" dialog where they would then browse to and select the file to
be inserted. Upon being inserted into the form, all attributes of the form
(i.e. font, size, margins, header & footer) will be respected and/or applied
to the inserted text, when appropriate.

The file to be inserted will always be a .txt file that is generated via a
script in the OS. The location of that file, however, is never the same -
hence the need for a dialog box.

Cindy Meister
INTER-Solutions, Switzerland
http://homepage.swissonline.ch/cindymeister (last update Jun 17 2005)
http://www.word.mvps.org

This reply is posted in the Newsgroup; please post any follow question or reply
in the newsgroup and not by e-mail :-)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top