Hi,
>Dim oRng As Range
>With ActiveDocument
> Set oRng=.Range(Start:=Bookmarks("BK1").Range.End,_
> End:=BookMarks("BK2").Range.Start)
>oRng.Delete
>End With
like that:
Sub Test7()
Dim oRng As Range
With ActiveDocument
Set oRng = .Range(Start:=.Bookmarks("BK1").Range.End, _
End:=.Bookmarks("BK2").Range.Start)
If Len(oRng.Tables(1).Cell(2, 1).Range) = 2 Then
oRng.Tables(1).Delete
End If
End With
End Sub
Note that there is a period missing
before "bookmarks" in your code.
--
Greetings from Bavaria, Germany
Helmut Weber, MVP WordVBA
Vista Small Business, Office XP