S
singeredel
I have code to delete bookmarks and unlink fields in a document once the
document is completed, as follows:
For Each Mark In .Bookmarks
.Bookmarks(Mark).Delete
Next Mark
For Each Field In .Fields
.Fields.Unlink
Next Field
End With
I need to NOT unlink a field if it contains a formula, only unlink the field
if it is a bookmark type field, but I don't know how to write this code.
Thanks for any help.
document is completed, as follows:
For Each Mark In .Bookmarks
.Bookmarks(Mark).Delete
Next Mark
For Each Field In .Fields
.Fields.Unlink
Next Field
End With
I need to NOT unlink a field if it contains a formula, only unlink the field
if it is a bookmark type field, but I don't know how to write this code.
Thanks for any help.