Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #16  
Old 02-12-2014, 10:35 AM
Charles Kenyon Charles Kenyon is offline Can two companies use a shared document within their own docs? Windows 7 64bit Can two companies use a shared document within their own docs? Office 2010 32bit
Moderator
 
Join Date: Mar 2012
Location: Sun Prairie, Wisconsin
Posts: 9,536
Charles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant future
Default

I would again urge you to look into the possibility of AutoText stored in a global template (or the attached template) accessed using an AutoText field instead of the IncludeText field.
Reply With Quote
  #17  
Old 02-12-2014, 10:43 AM
ChrisBrewster ChrisBrewster is offline Can two companies use a shared document within their own docs? Windows 7 64bit Can two companies use a shared document within their own docs? Office 2010 64bit
Advanced Beginner
Can two companies use a shared document within their own docs?
 
Join Date: Jan 2014
Posts: 36
ChrisBrewster is on a distinguished road
Default

I admit this sounded like a lot to learn about, especially considering that the IncludeText approach is working-- almost. My included text has to be fully formatted and will include some fairly big chunks, whereas Autotext seems oriented toward small insertions such as a standard salutation. Would the global template work by using links to files? Is there a discussion of this use somewhere on the web?
Reply With Quote
  #18  
Old 02-12-2014, 01:09 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

Quote:
Originally Posted by ChrisBrewster View Post
I like the simplicity of putting the shared document and the document of inserted text in the same folder, so that no pathname is needed. But I am running into the issue of Word's treatment of relative paths, getting "Invalid file name" some of the time. I've read the explanation, affected by which document was opened most recently and which folder is considered current. But this is hard to understand, and I have to make it easy for the other company. Is there a simple way to explain how to make the relative path (that is, no path specified) work correctly?
I have not suggested omitting the path; what I have suggested is using a FILENAME field to generate it. If you simply omit the path, Word is liable to add one of its own that sticks when the folder is changed. You won't see that in the field code, but it'll be buried behind the scenes in Word's metacode. The FILENAME field takes care of that.
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote
  #19  
Old 02-12-2014, 04:21 PM
ChrisBrewster ChrisBrewster is offline Can two companies use a shared document within their own docs? Windows 7 64bit Can two companies use a shared document within their own docs? Office 2010 64bit
Advanced Beginner
Can two companies use a shared document within their own docs?
 
Join Date: Jan 2014
Posts: 36
ChrisBrewster is on a distinguished road
Default

What {FILENAME \p} gives me is the full path plus the file name, but what I want is *only* the shared document's full path, appended to the name of the file to be included. In other words I need the equivalent of VBA's ActiveDocument.path. Is there a way to get only the path?
Reply With Quote
  #20  
Old 02-12-2014, 10:29 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

Quote:
Originally Posted by ChrisBrewster View Post
What {FILENAME \p} gives me is the full path plus the file name, but what I want is *only* the shared document's full path, appended to the name of the file to be included. In other words I need the equivalent of VBA's ActiveDocument.path. Is there a way to get only the path?
That's what the field code does! The '/../' strips off the document name, leaving just the path.
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote
  #21  
Old 02-12-2014, 11:29 PM
Charles Kenyon Charles Kenyon is offline Can two companies use a shared document within their own docs? Windows 7 64bit Can two companies use a shared document within their own docs? Office 2010 32bit
Moderator
 
Join Date: Mar 2012
Location: Sun Prairie, Wisconsin
Posts: 9,536
Charles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant future
Default

Quote:
Originally Posted by ChrisBrewster View Post
I admit this sounded like a lot to learn about, especially considering that the IncludeText approach is working-- almost. My included text has to be fully formatted and will include some fairly big chunks, whereas Autotext seems oriented toward small insertions such as a standard salutation. Would the global template work by using links to files? Is there a discussion of this use somewhere on the web?
First, if anyone knows about Word fields, it is Paul.

AutoText can contain multiple pages. It can contain large tables. I don't know whether it can include a Section Break. I've never tried. I'm sure that there are limits, but they must be truly large. With the AutoText you do not have to worry about bookmarks.

A template containing AutoText can be loaded as a Global Template. When it is, the relative path to the document using the AutoText is irrelevant. Formatting is best done through Styles using either AutoText or IncludeText.

It would be possible to have different templates holding the AutoText in different locations. The template would have AutoText entries with the same name but different content to suit the location. In a case where you are working on three company's documents on the same computer, you could manually load the different templates as Add-Ins.

If you are getting the IncludeText to work for you, great. When I posted my last comment, it looked like you were getting bogged down in the relative path problem.
Reply With Quote
  #22  
Old 02-13-2014, 07:30 AM
ChrisBrewster ChrisBrewster is offline Can two companies use a shared document within their own docs? Windows 7 64bit Can two companies use a shared document within their own docs? Office 2010 64bit
Advanced Beginner
Can two companies use a shared document within their own docs?
 
Join Date: Jan 2014
Posts: 36
ChrisBrewster is on a distinguished road
Default

Thank you for the explanation. I'd still want to see an example of how this is done. In the meantime, I'm using the {FILENAME \p}\..\ variable. I misunderstood the notation in that, not realizing the ".." needed to be used literally-- I thought I needed to substitute something. I notice it's faster, with less hiccupping, than the first way I did it.
Reply With Quote
  #23  
Old 02-13-2014, 01:09 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

Quote:
Originally Posted by ChrisBrewster View Post
I'd still want to see an example of how this is done.
See: https://www.msofficeforums.com/word/...html#post31405
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote
Reply

Thread Tools
Display Modes


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 02:24 PM.


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