Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 09-18-2013, 10:10 AM
trueimage trueimage is offline Using DocProperty Field Codes multiple times in the same document Windows 7 64bit Using DocProperty Field Codes multiple times in the same document Office 2010 64bit
Novice
Using DocProperty Field Codes multiple times in the same document
 
Join Date: Sep 2013
Posts: 4
trueimage is on a distinguished road
Question Using DocProperty Field Codes multiple times in the same document

Hi,



I'm using custom properties to synchronize data from an external application. My problem is this: I am using the fields multiple times throughout the document, but only the first one is populated with the updated value, the rest have their default value. An example of the code is:

{ DOCPOROPERTY GD_TITLE \* MERGEFORMAT }

Is this how this works, or is there a potential problem with the application? I need to display the same title, for example, on every page.

Thanks
Reply With Quote
  #2  
Old 09-18-2013, 11:24 AM
trueimage trueimage is offline Using DocProperty Field Codes multiple times in the same document Windows 7 64bit Using DocProperty Field Codes multiple times in the same document Office 2010 32bit
Novice
Using DocProperty Field Codes multiple times in the same document
 
Join Date: Sep 2013
Posts: 4
trueimage is on a distinguished road
Default

Ok, I've figured out that the values do populate if you repeat them, but there are section breaks in the document and as soon as you hit that, nothing past it will sync - so i'll have to look at the application side.
Reply With Quote
  #3  
Old 09-18-2013, 04:44 PM
fumei fumei is offline Using DocProperty Field Codes multiple times in the same document Windows 7 64bit Using DocProperty Field Codes multiple times in the same document Office XP
Expert
 
Join Date: Jan 2013
Posts: 440
fumei is on a distinguished road
Default

You could try updating all the fields.

Code:
Dim fld As Field
Code:
For Each fld In ActiveDocument.Fields
fld.Update
Next 
Reply With Quote
Reply

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Field codes or Cross referencing Francara Word 3 05-23-2013 03:50 AM
Formula Field using Field Codes hunter2193 Word 3 04-05-2013 04:58 AM
Field DOCPROPERTY LastSavedTime format problem ragesz Word 4 10-29-2012 06:58 AM
Using DocProperty Field Codes multiple times in the same document Word Equation field codes mkarthic Word 1 12-02-2011 02:09 AM
Using DocProperty Field Codes multiple times in the same document confusion with merge and field codes BluRay Mail Merge 5 03-29-2011 01:06 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 10:45 AM.


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