×
INTELLIGENT WORK FORUMS
FOR ENGINEERING PROFESSIONALS

Log In

Come Join Us!

Are you an
Engineering professional?
Join Eng-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Eng-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Jobs

Transfer from Excel to Word

Transfer from Excel to Word

Transfer from Excel to Word

(OP)
Hi,
I want to introduce some data on rows in an Excel sheet and these data to generate at least two different word documents for each row, that use specific templates. In a way, this is similar with Mail Merge but is not the same. I think to combine insert fields use with a macro but.....
How can I do that?
Thank you

RE: Transfer from Excel to Word

luckyluci:

If you want to take data from excel and transfer it to an existing template, why not just insert fields in the template.  You can set the fields up so they update manually (press F9), or you could write a macro that updates the fields from excel.  

An easy way to insert feilds is to copy the cells in excel that you want word to link to, then goto word and click on "Edit" and select "Paste Special..." then select the "Paste link:" option button and select "Formatted Text (RTF)" from the box then click ok.  

If you don't want the link to update automatically, highlight your field then click on "Edit" and select "Links..."  At the bottom of the links box, the update options are listed and you can choose how your field updates.

To update these fields from excel, you can write a macro.  I used a commandbutton to update my word document:

Private Sub CommandButton1_Click()
    Documents("Document1").Fields.Update
End Sub

You need to make sure that you have referenced Word in VBA for the code to work (click on "Tools" and select "References..." then check the box that coresponds to your version of word while you are in the VBA editor.  For word 2000, the box to check is "Microsoft Word 9.0 Object Library").

Hope this helps!

jproj

RE: Transfer from Excel to Word

(OP)
Thank you both!
There are good approaches but I think to something a bit different.
I will be clearer below:
Suppose you will put in the first row on an Excel Sheet the following field name:
Step 1
Project  | Client | Subject | By | Check by | ... and so
Step 2
after that you fill first row with information about first project
Step 3
do a "black box" action (this is what I need), and after that, using a template (e.g. Calculation Sheet template, a word document) the data from first row will be transferred in a word doc.
Step 4
fill next row of an Excel file with new data of a second project
Step 5
repeat step 3
Finally you will obtain several doc files and an index in Excel with the possibility to update (link) dynamically.
So I want to transfer information by "one shot".
Any new idea will be appreciated.

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Eng-Tips Forums free from inappropriate posts.
The Eng-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Eng-Tips forums is a member-only feature.

Click Here to join Eng-Tips and talk with other members!


Resources