I know this has been asked previously, but I can only find sites which create the table in Word as you transfer the data.
I have a Word document with 3 tables and want to extract data from an Excel file sent by a client into certain cells within the Word tables. E.G I would like to take the content of cell D3 in Excel and put it in cell 2,2 in the second table in Word? Is there a way to reference which table to insert the data?
Can anyone help with this or just push me in the right direction as I am relatively new to Macros etc. As we use the Word document and have the Excel file sent to us, would making the Macro in Word be more beneficial or not?
Thanks
.Nameproperty. Then you can refer to the table's.Cell(2,2).Shape.Text = "some value"(or something like this -- I'm not in a position to test so I'm writing from memory. If this is all you need to do, whether you choose to bind Excel to Word or Word to Excel is a matter of preference, really.InlineShapescollection usingFor each shp in ActiveDocument.InlineShapesthen check:If shp.HasTable Then Debug.Print shp.Name, etc.InlineShapesbut under, believe it or not,Tables. I can't believe I missed it the first time round of doing it. Thanks againShapescollection in PowerPoint which is where I do most of my VBA these days, but you're right they are a separateTablescollection in Word).