Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations GregLocock on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to paste a Word page in Word, after Excel data

Status
Not open for further replies.

pietro

Bioengineer
Nov 10, 2001
1
My problem is: if I typed the value <1> in a cell of an Excel file, I want the content of the Word file &quot;One&quot; to be pasted in an exsistent Word doc target. If I typed the value <2> in the same cell, I want the Word doc &quot;Two&quot; to be past in my doc, if I typed <3>, the content of &quot;Three&quot;, and so on.
Is that possible? If yes, thanks for answering.
 
I'll email you the sample Word and Excel files I setup. Here is the basic process I used...

1) In Excel, choose your cell to input the variable (Cell A1 in the Sample Excel file.)
2) In Excel, setup the &quot;text&quot; cell that is looking at your variable cell (Cell B1 in the Sample Excel file.) This is where you are going to have to do some manual work. This is the basic equation in Cell B1: =IF($A$1=1,&quot;one&quot;,IF($A$1=2,&quot;two&quot;,IF($A$1=3,&quot;three&quot;,&quot;blahblahblah...&quot;)))
Pretty straight-forwrd
3) In Excel, copy the &quot;text&quot; cell.
4) In Word, do Edit\Paste Special. In the Paste Special Dialog Box choose the Paste Link Radio Button, and then choose the method to Paste it As. I chose Formatted Text (RTF) for this example.
5) Tile both Word and Excel on your screen. Watch as you change the &quot;variable&quot; cell in Excel, the &quot;text&quot; cell and the Word Document update live with each change.
6) Word and Excel will retain that link even if you change filenames (I do believe.)

You should be able to get it from there.
Let me know if it doesn't make sense,
Ken Bolen
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor