How to set a Macro to copy and paste to bookmark

K

kph

I am looking to add a macro that will copy different selections within
a document and paste them to a specific bookmark.

How would this macro be done. I am a very beginner so I have no idean
how this would be done. Please be detailed.
 
D

Doug Robbins - Word MVP

Hi kph

The following code

ActiveDocument.Bookmarks("BMName").Range.Text = Selection.Text

Will "copy and paste" the text that is selected into the bookmark BMName

It may be however that what you should be doing is bookmarking the different
sections and inserting a cross reference field that refers to the text of
the bookmark at the other locations where you want it to appear.

Please post any further questions or followup to the newsgroups for the
benefit of others who may be interested. Unsolicited questions forwarded
directly to me will only be answered on a paid consulting basis.

Hope this helps
Doug Robbins - Word MVP
 

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