Clear Method Example

This example clears the first custom tab in the first paragraph of the active document.

ActiveDocument.Paragraphs(1).TabStops(1).Clear

This example protects the document for forms and deletes the text from the first form field if the field is a text form field.

ActiveDocument.Protect Type:=wdAllowOnlyFormFields, NoReset:=True
If ActiveDocument.FormFields(1).Type = wdFieldFormTextInput Then
    ActiveDocument.FormFields(1).TextInput.Clear
End If

This example removes all items from the form field named "Colors" in Sales.doc.

Documents("Sales.doc").FormFields("Colors") _
    .DropDown.ListEntries.Clear

This example removes dropped capital letter formatting from the first letter in the active document.

Set drop = ActiveDocument.Paragraphs(1).DropCap
If Not (drop Is Nothing) Then drop.Clear

This example removes the ALT+F1 key assignment from the Normal template.

CustomizationContext = NormalTemplate
FindKey(BuildKeyCode(Arg1:=wdKeyAlt, Arg2:=wdKeyF1)).Clear