![]() |
|
#19
|
||||
|
||||
|
Re slaycock's approach, you can suppress the error message by embedding the INCLUDETEXT fields in IF fields that test for the error. For example:
{IF{INCLUDETEXT "{FILENAME \p}/../ingredients_1.docx"}<> "Error*" {INCLUDETEXT "{FILENAME \p}/../ingredients_1.docx"}} Note that the above code assumes the ingredient files are kept in the same folder as the file they're linked to - the field coding employs the Relative Path linking described in http://www.msofficeforums.com/word/3...nal-files.html. If you're not keeping them in the same folder, simply edit the field code to suit. Note: The field brace pairs (i.e. '{ }') for the above example are all created in the document itself, via Ctrl-F9 (Cmd-F9 on a Mac); you can't simply type them or copy & paste them from this message. Nor is it practical to add them via any of the standard Word dialogues.
__________________
Cheers, Paul Edstein [Fmr MS MVP - Word] |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
Find instances of heading text in the body of my doc, make cross reference to the actual heading
|
MAHE | Word VBA | 4 | 03-03-2018 07:59 AM |
How to delete automatically 500 “Heading 4” and all the contents in this from Navigation?
|
liliaroma | Word VBA | 4 | 11-18-2017 07:53 PM |
| How to Hide/Un-hide a worksheet based on cell on another sheet. | easton11 | Excel Programming | 1 | 06-02-2015 12:07 PM |
Creating a table that automatically updates based on entries of a heading in the document
|
cahphoenix | Word | 3 | 10-29-2014 01:11 PM |
| How to have a heading 1 file automatically appear in each header of any page? | expert4knowledge | Word | 2 | 09-16-2012 10:38 AM |