Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.word.docmanagement
|
|||
|
|||
Field results question
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 |
#2
Posted to microsoft.public.word.docmanagement
|
|||
|
|||
Field results question
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" wrote in message ... 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 |
#3
Posted to microsoft.public.word.docmanagement
|
|||
|
|||
Field results question
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" wrote: 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" wrote in message ... 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 |
Reply |
Thread Tools | |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Creating multiple TOC | Page Layout | |||
Saving word document with field results not field codes | Microsoft Word Help | |||
How to replicate results / create new field names | New Users | |||
REPEAT FIELD IN HEADER.....Additional Question | Formatting Long Documents | |||
How do I replace 1 character with another in field code results? | Microsoft Word Help |