This example deletes the selection.
Selection.Delete
This example collapses the selection and deletes the two words following the insertion point.
Selection.Collapse Direction:=wdCollapseStart
Selection.Delete Unit:=wdWord, Count:=2
This example collapses myRange
and deletes the two characters preceding the insertion point.
Set myRange = Selection.Words(1)
myRange.Collapse Direction:=wdCollapseStart
myRange.Delete Unit:=wdCharacter, Count:=-2
This example deletes the first cell in the first table in document one.
Documents(1).Tables(1).Cell(1, 1).Delete _
ShiftCells:=wdDeleteCellsShiftLeft
If the bookmark named "temp" exists in the active document, this example deletes the bookmark.
If ActiveDocument.Bookmarks.Exists("temp") Then
ActiveDocument.Bookmarks("temp").Delete
End If
This example deletes the style named "Intro" from Sales.doc. Paragraphs using the Intro style will revert to using the Normal style.
Documents("Sales.doc").Styles("Intro").Delete
This example deletes the first word in the active document.
ActiveDocument.Words(1).Delete