![]() |
|
#2
|
||||
|
||||
|
Hi thedr9wningman,
For your address data and logos, you could probably get away with using just a single document property (e.g. the 'Office' property), coupled with INCLUDETEXT and, perhaps, INCLUDEPICTURE fields that reference the fuller details in external files. This would be much easier to code & maintain than putting it all into a macro. The INCLUDETEXT field would reference either a separate file for each location or a nominated bookmark within a common file shared by all locations. The code to update both the document property and the corresponding logo & address would then be as simple as; Code:
Sub Demo()
With ActiveDocument
.CustomDocumentProperties("Office").Text = InputBox("What is your Office location?", "Home Base")
.Fields.Update
.Fields.Unlink
End With
End Sub
__________________
Cheers, Paul Edstein [Fmr MS MVP - Word] |
| Tags |
| content controls, docproperty, document properties |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
Help with Document Properties Prompt Macro
|
KJJ | Word VBA | 14 | 11-10-2016 08:18 PM |
Document properties driving sections in template
|
cheffx1265 | Word VBA | 1 | 04-05-2013 05:25 AM |
| Key shortcut to access document properties | eroock | Word | 0 | 12-11-2012 10:54 AM |
| document properties issues | charris1980 | Word | 0 | 04-29-2009 12:49 PM |