Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #13  
Old 02-04-2014, 03:19 PM
macropod's Avatar
macropod macropod is offline Can two companies use a shared document within their own docs? Windows 7 32bit Can two companies use a shared document within their own docs? Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 22,467
macropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond repute
Default

Somehow, I still think you don't 'get' it.

An INCLUDETEXT field that uses a relative path to reference a bookmarked range in a source document would be constructed along the lines of:
{INCLUDETEXT "{FILENAME \p}/../SourceDoc.docx" "BookmarkName"}
In this scenario, both the Acme and Apex companies would use their own versions of SourceDoc (i.e. both companies would have a document named 'SourceDoc.docx'). That document would hold all the variable data for the compnay concerned. Each company's source document would also use the same bookmark names. The target document would hold both the boilerplate text and the INCLUDETEXT fields that reference only SourceDoc.docx plus the relevant bookmark names.

With the above approach, no Document Variable or DOCVARIABLE field is required. You would only need the Document Variable and DOCVARIABLE fields if you wanted to specify the source document:
• path;
• name; and/or
• bookmark.
For example, to specify the:
• path, you might use:
{INCLUDETEXT "{IF {DOCVARIABLE Company}= "Acme" "C:/Acme/SharedFiles/" "H:/Apex/SomeFolder/"}SourceDoc.docx" "BookmarkName"}
where 'Acme' or 'Apex' is part of the path (other variable name text could be used instead of 'Acme' or 'Apex')
• name, you might use:
{INCLUDETEXT "{FILENAME \p}/../{IF {DOCVARIABLE Company}= "Acme" "Acme" "Apex"}Source.docx" "BookmarkName"}
where 'Acme' or 'Apex' is part of the filename (other variable name text could be used instead of 'Acme' or 'Apex')
• bookmark, you might use:
{INCLUDETEXT "{FILENAME \p}/../SourceDoc.docx" "{IF {DOCVARIABLE Company}= "Acme" "Acme" "Apex"}BookmarkName"}
where 'Acme' or 'Apex' is part of the bookmark name (other variable name text could be used instead of 'Acme' or 'Apex').

The first and second DOCVARIABLE approaches envisage separate source documents for each company. If you use the third DOCVARIABLE approach, perhaps even when combined with the first one, that allows you to maintain a single source document for both companies, with the variable content differentiate by the bookmark names. Any of these approaches allow you to "require the author to toggle both the terms", but I can't see why you'd want to do that. Surely you wouldn't want staff at Acme & Apex switching Document Variables so they can get access to each other's content and maybe even fake each other's letters!?? If you're concerned to test the development, simply use:
• a field along the lines of:
{INCLUDETEXT "{FILENAME \p}/../SourceDoc.docx" "BookmarkName"}
• maintain separate source documents for Acme and Apex; and
• copy the Acme or Apex source documents to SourceDoc as required.
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote
 



Similar Threads
Thread Thread Starter Forum Replies Last Post
Same values of variables in word add-in are being shared across multiple document naq.abbas@gmail.com Word 0 01-13-2014 10:41 AM
Can two companies use a shared document within their own docs? How do you update your source docs from a master document? Joyce Word 3 07-12-2013 08:54 AM
Can two companies use a shared document within their own docs? Office '07: Shared document will not save AquaSabes Excel 1 09-22-2011 02:29 AM
Can two companies use a shared document within their own docs? Which certifications do companies want? hoorayhooray Chitchat 1 05-19-2010 10:39 AM
Office 2003 docs containg JPG Image to 2007 Document Sandip Dangat Drawing and Graphics 5 10-30-2009 06:27 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 12:40 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft