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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top