M
mcp6453
I have a Word 2000 template that uses InsertField to insert AutoText
into a header at creation time. After the document is open, I need to be
able to unlink the field in the header such that the header never
changes.
The UnlinkAllFields macro is ActiveDocument.Fields.Unlink. If I run it
from the open document, it ignores the header. If I open the header and
run it, nothing happens. If I select all text in the open header and run
it, the fields are unlinked.
Similar to this operation, if I open the header and run
Selection.Fields.Unlink, I don't have to select the field in the header
to unlink it.
Here's the question: Is there a way to unlink the fields in the header
without having to open the header, select the text, unlink the field,
and close the header?
into a header at creation time. After the document is open, I need to be
able to unlink the field in the header such that the header never
changes.
The UnlinkAllFields macro is ActiveDocument.Fields.Unlink. If I run it
from the open document, it ignores the header. If I open the header and
run it, nothing happens. If I select all text in the open header and run
it, the fields are unlinked.
Similar to this operation, if I open the header and run
Selection.Fields.Unlink, I don't have to select the field in the header
to unlink it.
Here's the question: Is there a way to unlink the fields in the header
without having to open the header, select the text, unlink the field,
and close the header?