Re: Macro to delete between bookmarks by Marty
Marty
Wed Feb 02 11:07:02 CST 2005
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
"Dave Lett" wrote:
> 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
>
> "Marty" <Marty@discussions.microsoft.com> wrote in message
> news:005CB44B-1781-44CA-9562-24FD640DD269@microsoft.com...
> > In Word97, can a macro be written such that it will delete all text
> between 2
> > bookmarks?
> >
> > Thanks,
> >
> > Marty
>
>
>