unlink_fields method

unlink_fields()

Unlinks fields in this range.

def unlink_fields(self):
    ...

Remarks

Replaces all the fields in this range with their most recent results.

To unlink fields in the whole document use Range.unlink_fields().

Examples

Shows how to unlink all fields in a range.

doc = aw.Document(MY_DIR + "Linked fields.docx")

new_section = doc.sections[0].clone(True).as_section()
doc.sections.add(new_section)

doc.sections[1].range.unlink_fields()

See Also