Quick Parts in Word 2007

J

JCrox

Hi

I'm using quick parts in a word document and am finding they are nothing
like fields in that they print even when the related property is not set.

For example, I insert a quick part relating to the customer which I do not
set and "[Customer]" is printed.

Is there any way I can make sure "blank" Quick Parts do not print? This
would not have been a problem in Word 2003 using fields but apparently that
is not fasionable anymore...

Many thanks
 
J

JCrox

Sorry to answer my own question.

The post is now in the wrong place as the solution involves vba.

Adding the following to the template helped:

Private Sub Document_ContentControlAfterAdd(ByVal NewContentControl As
ContentControl, ByVal InUndoRedo As Boolean)
NewContentControl.SetPlaceholderText _
Text:=" "
End Sub

Ideally though the "SetPlaceholderText" property should be able to be set
from the word GUI eg right click on the quick part.

JC
 
Top