Field results question

G

Guest

Hi everybody,
I'm setting up a document in Word 2003 with many INCLUDETEXT fields in it,
once the documents from the fields exist, I'll update the fields to put them
in the document. In the meantime, does anyone know if there's a way to change
the error message, when the file doesn't exist, from "Error! Not a valid
filename!" to "<filename> doesn't yet exist."? That would make things much
easier, so I could remind myself exactly what files I still need.
Thanks a lot!
Jezzica85
 
M

macropod

Hi jezzica85,

You could do an IF test on your INCLUDETEXT fields. For example:
{IF{INCLUDETEXT "C:\\Myfile.doc"}= "Error!*" "Filename doesn't yet exist."
{INCLUDETEXT "C:\\Myfile.doc"}}
Which will give you the error message of your choosing but, unless the
filname can be obtained from a bookmarked reference somewhere else, you
won't be able to get the actual filename into the message.

Cheers
 
G

Guest

Thanks macro,
That was very helpful. Maybe I'll try what you suggested with the bookmarks,
but even if I can't get it to work this already saves me some aggravation.
Thanks again,
Jezzica85

macropod said:
Hi jezzica85,

You could do an IF test on your INCLUDETEXT fields. For example:
{IF{INCLUDETEXT "C:\\Myfile.doc"}= "Error!*" "Filename doesn't yet exist."
{INCLUDETEXT "C:\\Myfile.doc"}}
Which will give you the error message of your choosing but, unless the
filname can be obtained from a bookmarked reference somewhere else, you
won't be able to get the actual filename into the message.

Cheers

--
macropod
[MVP - Microsoft Word]


jezzica85 said:
Hi everybody,
I'm setting up a document in Word 2003 with many INCLUDETEXT fields in it,
once the documents from the fields exist, I'll update the fields to put them
in the document. In the meantime, does anyone know if there's a way to change
the error message, when the file doesn't exist, from "Error! Not a valid
filename!" to "<filename> doesn't yet exist."? That would make things much
easier, so I could remind myself exactly what files I still need.
Thanks a lot!
Jezzica85
 

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

Top