Table Macro

R

Rebecca

Greetings. I apologize for cross-posting, but I think I
asked this question in the wrong group.

I have MS WORD 2002 documents that contain hundreds of
tables separated by paragraph marks. Each table in the
WORD documents look like the following (the English words
below are actually Greek words in the document, but the
Greek fonts cannot be displayed in this post):

1) each table contains from one to 10 columns
2) each table contains exactly three rows, as follows:

house tree flower mouse
houses trees flowers mice
asdff fvfff hfddd gdksn etc.

I desparately need a macro that can add a new row after
the second row (so I can later make an interlinear by
adding words that translate the Greek words in the two
rows above), so it will look like this:

house tree flower mouse
houses trees flowers mice

asdff fvfff hfddd gdksn etc.

I will then add words (the English translations of the
Greek words) in the new rows. I can insert a row one by
one by simply placing the mouse cursor on the "a"
in "asdff" (the parsings of the Greek words) and pressing
enter, on the "f" in "fvfff," and so on. But as I wrote
above, the files contain hundreds of tables, so it would
take hours upon hours to do this. Could someone please
tell me in easy English how to make a macro to perform
this task? And please keep in mind that I am unfamiliar
with VB programming. Thanks.

..
 
J

Jean-Guy Marcil

Bonjour,

Dans son message, < Rebecca > écrivait :
In this message, < Rebecca > wrote:

|| Greetings. I apologize for cross-posting, but I think I
|| asked this question in the wrong group.
||
|| I have MS WORD 2002 documents that contain hundreds of
|| tables separated by paragraph marks. Each table in the
|| WORD documents look like the following (the English words
|| below are actually Greek words in the document, but the
|| Greek fonts cannot be displayed in this post):
||
|| 1) each table contains from one to 10 columns
|| 2) each table contains exactly three rows, as follows:
||
|| house tree flower mouse
|| houses trees flowers mice
|| asdff fvfff hfddd gdksn etc.
||
|| I desparately need a macro that can add a new row after
|| the second row (so I can later make an interlinear by
|| adding words that translate the Greek words in the two
|| rows above), so it will look like this:
||
|| house tree flower mouse
|| houses trees flowers mice
||
|| asdff fvfff hfddd gdksn etc.
||
|| I will then add words (the English translations of the
|| Greek words) in the new rows. I can insert a row one by
|| one by simply placing the mouse cursor on the "a"
|| in "asdff" (the parsings of the Greek words) and pressing
|| enter, on the "f" in "fvfff," and so on. But as I wrote
|| above, the files contain hundreds of tables, so it would
|| take hours upon hours to do this. Could someone please
|| tell me in easy English how to make a macro to perform
|| this task? And please keep in mind that I am unfamiliar
|| with VB programming. Thanks.
||

Since you are going to have to go through each table one by one anyway,
adding a row will not take longer if you do it the right way. The way you
described adding rows will not add rows, it will add extra paragraphs in
each cells of the third row.

All you have to do is click at the end of row 2 (outside the table, right
next to the end of row marker - ¤, you can display the non-printable
characters to help you by clicking on the ¶ on the toolbar. An easy way to
place the cursor at the end of the row is to click next to the row, but in
the right margin area.) Once the cursor is at the end of the row, just hit
Enter and right away start typing the first word of the third row (the third
row will be added automatically). Then use TAB to go to the next cell and so
on. The time you would spend learning to handle the macro and making it run
properly will not decrease significantly the time spent on your job because
you have to go to each table manually to type text.

--
Salut!
_______________________________________
Jean-Guy Marcil - Word MVP
(e-mail address removed)
Word MVP site: http://www.word.mvps.org
 

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