I have a word template from which I am creating copies as documents.
The template contains passages of text only some of which apply to various
options. Rather than have to maintain multiple templates I would like to
have one and then cut bookmarked passages of text as appropriate.
Does any one have any text which will cut the text within a named bookmark
without using the selection object?
Greg Maxey - 17 Oct 2006 20:58 GMT
If you have a bookmark named let's say "Cutme." You could use code
like:
Sub ScratchMacro()
ActiveDocument.Bookmarks("Cutme").Range.Delete
End Sub
> I have a word template from which I am creating copies as documents.
>
[quoted text clipped - 4 lines]
> Does any one have any text which will cut the text within a named bookmark
> without using the selection object?
Dave Lett - 17 Oct 2006 21:00 GMT
Hi,
You can use something like the following:
ActiveDocument.Bookmarks("Test").Range.Text = ""
HTH,
Dave
>I have a word template from which I am creating copies as documents.
>
[quoted text clipped - 4 lines]
> Does any one have any text which will cut the text within a named bookmark
> without using the selection object?