![]() |
|
|
|
#1
|
|||
|
|||
|
Sorry, but I tried on another PC and it did not show the include text fields as an error. I attached a new file that I run your macro. Please download it for taking a look on it. |
|
#2
|
|||
|
|||
|
OK, so some form of metadata is preserved. Before you send your document to a freelancer, open it on a different PC, update the fields and then save the document. This should ensure that the includetext fields just show the error message.
|
|
#3
|
|||
|
|||
|
Thanks both @slaycock and @macropod for the great support. Now, I have 2 solutions for my problem and I am very thankful about this.
For the solution of @slaycock, I only need to delete or rename the folder included Ingredient sections. And then, the include text fields will show as an error. For the solution of @macropod, I can solve my problem easily and quickly with one click. I strongly believe that I will use both of them for my task because they are awesome. |
|
#4
|
|||
|
|||
|
Quote:
|
|
#5
|
||||
|
||||
|
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 |