PC Review


Reply
Thread Tools Rate Thread

DDEPoke only pushes the text contents from excel to word

 
 
=?Utf-8?B?TW9oYW4=?=
Guest
Posts: n/a
 
      22nd Feb 2007
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
 
Reply With Quote
 
 
 
 
Peter T
Guest
Posts: n/a
 
      22nd Feb 2007
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


"Mohan" <(E-Mail Removed)> wrote in message
news:C0FCC62E-A3AB-4BD7-9350-(E-Mail Removed)...
> 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



 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
why have the contents of text boxes and word art stopped printing =?Utf-8?B?d29yZCBpcyBraWxsaW5nIG1l?= Microsoft Word Document Management 4 14th Jun 2006 01:33 PM
From excel - open word doc and copy form field contents to excel c =?Utf-8?B?Z25vbWU4OA==?= Microsoft Excel Programming 0 25th Jul 2005 11:45 PM
Re: In Word 2000 I loose the contents of text boxes when using print . Suzanne S. Barnhill Microsoft Word Document Management 0 3rd Sep 2004 03:30 PM
Sending array data to Word with DDEPoke VC Microsoft Excel Programming 0 9th Nov 2003 03:19 AM
Send array data from Excel macor to Word Doc using DDEPoke Vijay Chaudhari Microsoft Excel Programming 0 7th Nov 2003 07:12 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 01:18 AM.