DDEPoke only pushes the text contents from excel to word

M

Mohan

Hello Experts,

I would like to push data to word from excel without using the system
clipboard.

I am able to acheive this by using ddepoke. But, only text data is pushed to
word, but not the graphics like bmp images, charts,etc. I have given the code
snippet that I am using. Any advise on the usage to push the entire contents
like images, charts, will be greatly helpful.

channelNumber = DDEInitiate(app:="WinWord", topic:="C:\Test.doc")
Cells.Select 'Selects the entire active work sheet
DDEPoke channelNumber, "\StartOfDoc", Selection

Thanks,
Mohan
 
P

Peter T

I can't answer your question, DDE "Dynamic Data Exchange" suggests not
directly possible to 'exchange' objects, but maybe someone knows.

My reply is only to remind anyone testing your code snippet to close the
channel (if successfully opened) with DDETerminate channelNumber

Regards,
Peter T
 

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