Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #2  
Old 01-16-2014, 04:03 PM
macropod's Avatar
macropod macropod is offline Updating Document Properties without using advanced properties dialogue Windows 7 32bit Updating Document Properties without using advanced properties dialogue Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 22,536
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

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]
Reply With Quote
 

Tags
content controls, docproperty, document properties



Similar Threads
Thread Thread Starter Forum Replies Last Post
Updating Document Properties without using advanced properties dialogue Help with Document Properties Prompt Macro KJJ Word VBA 14 11-10-2016 08:18 PM
Updating Document Properties without using advanced properties dialogue 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

Other Forums: Access Forums

All times are GMT -7. The time now is 09:02 AM.


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