Object Model Reference : Classes : D : DataField : Methods : DataField.Delete |
Sub Delete()
Member of DataField
The Delete method deletes a specified data field. You can delete any data field except for Name and CDRStaticID. When you delete a field, you also delete all data entered for that field in the active document.
The following VBA example deletes the data field named Temporary (assuming that this field has previously been created).
Sub Test() |
ActiveDocument.DataFields.Add ("Temporary") |
ActiveDocument.DataFields("Temporary").Delete |
End Sub |
Copyright 2013 Corel Corporation. All rights reserved.