pasting image from clipboard

C

Christof DB

Please advise:

in excel I have code that creates a word document object.
I can write text to the document
with 'document.activeWindow.selection.TypeText'
So far so good.

What I really need is to alternatively type some text and
paste an inline image from the clipboard
(datatype 'image') into the word document.
I've tried many ways but can't get it to work
(selection.PasteSpecial)

Can anybody advise to the cleanest way to do this with
Word objects.

thanks A LOT in advance

Christof
 
D

Doug Robbins - Word MVP - DELETE UPPERCASE CHARACT

Hi Christof

See the article “Manipulating the clipboard using VBA” at:

http://word.mvps.org/FAQs/MacrosVBA/ManipulateClipboard.htm


--
Please post any further questions or followup to the newsgroups for the
benefit of others who may be interested. Unsolicited questions forwarded
directly to me will only be answered on a paid consulting basis.
Hope this helps
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