Create input in table automatically

C

carl

I get test protocols from different people. Each test has
one page in the protocol. The person writing the protocol
can write a remark on any of these pages. The remark
starts with the word remark and an ascending number
1,2,3..

In the end of the document I have to make a summary of
the remarks in a table. Each remark gets a row and I copy
the remark text from the other pages manually.

Is there a way of automate this?

Not all tests get a remark and sometimes one test can get
several remarks. Is there someway to prepare the protocol
so that the remark list gets filled in automatically. I
have had ideas like: When you write some text in a table
cell that text gets copied to an empty row in the table.

Any ideas? I'm a VBA super beginner.

Best regards Carl from Sweden
 
M

M.L.Mitchell

You don't need to program VBA for this one (although when you figure it out,
do post it.)

You can accomplish this with styles and a TOC (table of contents). If I
understand correctly, the Remark area looks like this:

Remark 1: blah-blah-blah
Remark 2: same as above

Define these as a style (e.g., Remark) under Format-Style. (If you specify
in format-style that the paragraph following the Remark style is also Remark,
each [Enter] will keep the style going. The point is to consistently apply
the style to all of the remark lines.

Build the TOC at the rear (or wherever it is you need to collect this group
of remarks).
You want to build this table based on styles, specifically the Remark style.
(See Word help for specifics on how to do this.)

If you have a conventional Table of Contents at the beginning of the
document, the first time you create this 'alternate' TOC (the list of
remarks), it will highlight the first one and ask if you want to replace it.
Click no. The new one will be generated where you wanted it.

Hope this helps.

mlm
 

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