#1
|
|||
|
|||
Embedding Dynamic Elements in a Word Document
Is it possible to embed dynamic elements in a Word document? We have a set of documents our department uses regularly. However, due to regular organizational changes, the department name, logo, address, etc. change frequently. As a result, within weeks of updating these documents they are out of date again. I'd like to create a set of templates that draws some fields from a database or other location. Data would include plain text and some graphics. I've had a look at creating a mailmerge document but the document needs to open like a regular template. It seems that mailmerge documents are kind of clumsy. Does anyone have ideas on how to do this? |
#2
|
||||
|
||||
Hi Kerry,
You could have your templates configured with INCLUDETEXT & INCLUDEPICTURE fields that reference the relevant content in 'master' files. That way, you'd only need to update the master files for the changes to be reflected in all documents created from those templates. Of course, the templates would also need to have a 'Document_New' macro that unlinks the INCLUDETEXT & INCLUDEPICTURE fields any newly-created documents, so that a later change in logos etc wouldn't be reflected in those files too.
__________________
Cheers, Paul Edstein [Fmr MS MVP - Word] |
#3
|
|||
|
|||
Thank you! I'll give that a try. it sounds as though it will work, provided I can find a network drive everyone can access and I have permission to store files there.
|
#4
|
||||
|
||||
Hi Kerry,
Provided someone has permission to store the files there, that someone shouldn't need to be you - simply send them the updates when required. A 'Document_New' macro for the template, to update & unlink the INCLUDETEXT & INCLUDEPICTURE fields in any newly-created documents would look like: Code:
Private Sub Document_New() With ActiveDocument.Sections.First.Headers(wdHeaderFooterPrimary).Range.Fields .Update .Unlink End With End Sub
__________________
Cheers, Paul Edstein [Fmr MS MVP - Word] |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
embedding all elements of powerpoint presentation | kizzieb | PowerPoint | 1 | 11-05-2011 08:30 AM |
seach an Excel list elements in word document | 7ajar | Word VBA | 5 | 03-16-2011 12:38 PM |
Embedding Excel Object in Word Document Failing | brandonf | Word | 0 | 10-04-2010 11:45 AM |
Embedding Text in MS Word | ralphe | Word | 0 | 09-30-2010 01:41 PM |
MS Word to pdf - elements moved | SFC | Word | 1 | 05-25-2010 11:27 AM |