Hi Marty,
You can use something like the following:
Dim oRng As Range
With ActiveDocument
Set oRng = .Range _
(Start:=.Bookmarks("bk1").Range.End, _
End:=.Bookmarks("bk2").Range.Start)
oRng.delete
End With
HTH,
Dave
> In Word97, can a macro be written such that it will delete all text between 2
> bookmarks?
>
> Thanks,
>
> Marty
Marty - 02 Feb 2005 17:07 GMT
Hi Dave-
Thanks. It worked!!!! (sort of)
My bookmarks did not carry across from the template to the document, but
I'll post this as a separate question.
But, it did delete the text between the bookmarks when I tested it in a new
document which was not generated in a merge.
Thanks.
-Marty
> Hi Marty,
>
[quoted text clipped - 18 lines]
> >
> > Marty