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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

need to paste an image in clipboard in to word

Status
Not open for further replies.

laks143

Programmer
Apr 20, 2009
20
GB
hi i am trying to paste a screen shot which is in clipboard in to a word

set word= CreateObject("Word.Application")
Word.Visible = TRUE
Word.Documents.add()
word.document.parentwindow.clipboard.getimage()
word.Selection.Paste

but the above code is pasting the image as text format.i need the exact image to be pasted in the word.
if anyone knows please help me.

Thanks in advance !!!

 
have you tried using WSHExtra? It gives you full access to the clipboard via vbscript.


The DLL was written by PC Magazine a few years ago.


I hope you find this post helpful.

Regards,

Mark

Check out my scripting solutions at
Work SMARTER not HARDER. The Spider's Parlor's Admin Script Pack is a collection of Administrative scripts designed to make IT Administration easier! Save time, get more work done, get the Admin Script Pack.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top