RE: ActiveDocument.Fields.Add - Setting Font Color and Hidden? by ChuckHenrich
ChuckHenrich
Thu Feb 09 10:26:49 CST 2006
Quick and dirty: You can select the field and work on the selection.
Setting a range to equal the field (so you can work on a range object not a
selection object) involves more work.
Set newfield = ActiveDocument.Fields.Add(Range:=Selection.Range, _
Type:=FieldType, Text:=FieldText, _
PreserveFormatting:=PreserveFormat)
newfield.Select
Selection.Font.Hidden = True
--
Chuck Henrich
www.ProductivityApps.com
Stylist Style Generator - automatically create and define sets of paragraph
numbering and heading styles
"ML" wrote:
> Is there a way to set the font when adding a new field?
>
> Set newfield = ActiveDocument.Fields.Add(Range:=Selection.Range, _
> Type:=FieldType, Text:=FieldText, _
> PreserveFormatting:=PreserveFormat)
> Add_Field = newfield.Index
>
> Want to set the font to be hidden for this field?
>
>
>