Using bookmarks to place a picture in word.

S

shishi

Hi,

I am trying to generate couple of word documents from excel sheet
using a vba code. I am partly successful in that. I have created a word
template with bookmarks. I am replacing book marks with appropriate
data from excel sheet. But I am not able to insert a picture from excel
to one of the bookmarks in word. The code snippet is as below.



Set ToCell = oDoc.Bookmarks("PadHook").Range

With Worksheets("DOC")
.Range("DRAWING_LOC").Copy Destination:=ToCell

End With


This is not working. What am I doing wrong. Thanks in advance for
suggestion.

Shishi
 
W

Word Heretic

G'day "shishi" <[email protected]>,

At a glance I would say you would need to change the destination to
the clipboard.

Steve Hudson - Word Heretic

steve from wordheretic.com (Email replies require payment)
Without prejudice


shishi reckoned:
 

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