Cutting Bookmarked Text

E

EA

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?
 
G

Greg Maxey

If you have a bookmark named let's say "Cutme." You could use code
like:

Sub ScratchMacro()
ActiveDocument.Bookmarks("Cutme").Range.Delete
End Sub
 
D

Dave Lett

Hi,

You can use something like the following:

ActiveDocument.Bookmarks("Test").Range.Text = ""

HTH,
Dave
 
Top