K
kdh
In an attempt to automate the conversion of document headers, I have been
stumped by the Add method of the Fields collection continually overwriting
the first field rather than adding additional fields.
ActiveDocument.Fields.Add _
Range:=ActiveDocument.Sections(1).Headers(wdHeaderFooterPrimary).Range, _
Type:=wdFieldDocProperty
Trying to add multiple fields just continually modifies Item 1 inside the
Fields collection. I can manipulate the one field it does create as desired
and I can manipulate multiple fields if they are first created manually in
Word first. I just can't seem to get more than one field created at any given
time. Any suggestions would be appreciated.
stumped by the Add method of the Fields collection continually overwriting
the first field rather than adding additional fields.
ActiveDocument.Fields.Add _
Range:=ActiveDocument.Sections(1).Headers(wdHeaderFooterPrimary).Range, _
Type:=wdFieldDocProperty
Trying to add multiple fields just continually modifies Item 1 inside the
Fields collection. I can manipulate the one field it does create as desired
and I can manipulate multiple fields if they are first created manually in
Word first. I just can't seem to get more than one field created at any given
time. Any suggestions would be appreciated.