Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

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

Import Embedded Bitmap from Excel into Word

Status
Not open for further replies.

CRB123

Programmer
Sep 10, 2008
1
NL
I have a spreadsheet that takes various data and converts into a Word Document.

The word document is set-up as a template and embedded into Excel.

When the VBA code runs, it opens the embedded word document and, by referencing various bookmarks, populates the document.

Is there anyway to insert a bitmap at a particular bookmark? I'm trying something along the lines of

wrdDoc.Bookmarks("Logo").Shapes.AddPicture (Sheets("config").Shapes("Hampshire"))

but it says Method or Data member not found.


An example of the code I have for inserting the text is:

wrdDoc.Bookmarks("P2Address1").Range.Text = Worksheets(PD).Cells(4, E)

This works fine for all the text elements I need to import, but I also need to import a bitmap file, embedded in excel. I can't just add it to the template itself, as the bitmap to be used depends on certain criteria filled out in the spreadsheet.


Any help would be appreciated.


 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top