VBA script that copies a text from one table to another one

J

Jo Gjessing

Hi all,

In a Word document of mine I have three tables with two cells in each. When
the user writes something in the left cell of the uppermost table I want a
VBA script to copy the text to the left cell of the lowermost table. Can you
imagine how I create this VBA script? If you have a enlightening comment for
me, please let me know. Thank you very much in advance.

Jo
 
R

Robert M. Franz (RMF)

Hello jo

Jo said:
In a Word document of mine I have three tables with two cells in each. When
the user writes something in the left cell of the uppermost table I want a
VBA script to copy the text to the left cell of the lowermost table. Can you
imagine how I create this VBA script? If you have a enlightening comment for
me, please let me know. Thank you very much in advance.

there are at least two simple approaches to this problem that don't rely
on code at all.

You could bookmark the contents of the top left cell and insert a
cross-reference in the bottom right cell. [Can be tricky if the top left
cell must be completely empty, and relies on field-updating for the
cross-reference to show the latest content.]

Or you could format the top left cell with a unique paragraph style and
insert a STYLEREF field in the bottom right cell. Pro: updates
immediately; con: the user can only write one paragraph (usage of manual
line breaks is fine, though).

0.2¢
Robert
 

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