insert picture in individual cells of word table

E

ephelps

I need to insert 9 pictures into a 3by3 table each in their own cells.
i have kind of rudimentary code for inserting and formatting the
pictures and i can get all 9 of them in one cell, but i need to go one
in each cell. what's the easiest way to do that? TIA
Edwin
 
D

Doug Robbins - Word MVP

You could use mailmerge to do it. See the "Graphics from data base" item
under the "Special merges" section of fellow MVP Cindy Meister's website at
:

http://homepage.swissonline.ch/cindymeister/MergFram.htm

Otherwise, to do it with code, you would use the .Range of each cell in the
following construction

ActiveDocument.Tables(1).Cell(i , j).Range.InlineShapes.AddPicture
Filename:="Path\Filename"
--
Hope this helps.

Please reply to the newsgroup unless you wish to avail yourself of my
services on a paid consulting basis.

Doug Robbins - Word MVP
 

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