Copy text from word document to cell of a table thru a macro

C

contactabbas

Hi All,

In a word document, I have some text and then a table below it. I would
like to select part of a text and paste it in a particular cell, then
another part in another cell.... I tried recording a macro, but I am
unable to toggle between table and "non-table" area in a doc.

Any inputs would be highly appreciated.

Background : I have my employee's monthly data in an excel sheet. I
need to generate a word (.doc) file as the payslip of each employee and
mail him / her. The contents of the payslip doc file is a table, part
of whose content is static (eg. company's logo) and other is dynamic
(eg. employee info).

Thanks, Abbas
 
H

Helmut Weber

Hi Abbas,
In a word document, I have some text and then a table below it. I would
like to select part of a text and paste it in a particular cell, then
another part in another cell.... I tried recording a macro, but I am
unable to toggle between table and "non-table" area in a doc.
Any inputs would be highly appreciated.

No problem, in principle,

but what part of the text outside of the table
should go to what cell of the table?
Assumed, that there is only one table.

--
Greetings from Bavaria, Germany

Helmut Weber, MVP WordVBA

Win XP, Office 2003
"red.sys" & Chr$(64) & "t-online.de"
 

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