Copying text from one document section to another...

M

ML

Is there a way to copy text that a user types from one section of a document
to others?

Basically I need a way to copy the text the user enters into a summary
section, into a table that is at the end of the document. This is filing
sheet that includes the summary as the meta data for logging the document.
I want to copy the full text from one section and place it in another.

Is there someway to mark the text so that a macro or similar can then
reference and copy it, formatting and all to another document section?
 
J

Jonathan West

ML said:
Is there a way to copy text that a user types from one section of a
document to others?

Basically I need a way to copy the text the user enters into a summary
section, into a table that is at the end of the document. This is filing
sheet that includes the summary as the meta data for logging the document.
I want to copy the full text from one section and place it in another.

Is there someway to mark the text so that a macro or similar can then
reference and copy it, formatting and all to another document section?

Hi ML,

Mark the text to be copied with a bookmark. Then add a REF field referencing
the bookmark at the end of the document
 
D

Dave Lett

Hi ML,

Instead of copying it, you could bookmark the summary section an include a
{ REF } field to capture the text.

HTH,
Dave
 
M

ML

Thanks. Is there someway I can do this easily via a menu or macro? I need
to make this as simple as possible for the user who may not be a word
expert. I also need to ensure that the ref field is in place in the other
section within the template so the user does not have to insert a ref
themselves.

Ideally the user would enter the text in a pretagged area or tag it with a
menu item after typing it and then it automatically appear in the other
section on a field update or similar.
 
M

ML

Thanks. Sorry for the cross posting, wasn't sure where this applied best.

Is there anyway to protect a bookmark or have it inserted via a macro around
selected text? Want to control its naming so that it is properly referenced
where needed.
 
J

Jonathan West

ML said:
Thanks. Sorry for the cross posting, wasn't sure where this applied best.

Is there anyway to protect a bookmark or have it inserted via a macro
around selected text? Want to control its naming so that it is properly
referenced where needed.

You can't protect a bookmark, though you can make it harder for it to be
accidentally deleted, for instance by applying a bookmnarks to a whole
table.

You can use VBA to apply a bookmark with a predefined name to the current
selection very easily, like this

ActiveDocument.Bookmarks.Add Name:="MyBookmark", Range:=Selection.Range
 
M

ML

Thanks I got it working. I just made a macro to bookmark the selected text.
That way the user can type the info and mark it and I can reference.

Thanks for your help!
 

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