(Solved) – Pasting multiple images in a word doc

  • by
(solved)-–-pasting-multiple-images-in-a-word-doc

I need assistance in building a macro that would take the image that is stored in the clipboard and paste it in the word doc. There will be multiple images so sequential images must be pasted at the end of the document.

Here is my current code so far

‘ Create word document and paste to word

Set wordobj = CreateObject("Word.Application")
Set objdoc = wordobj.Documents.Add
wordobj.Visible = True
Set objSelection = wordobj.Selection
objSelection.Paste

‘ Paste in the active end of the word document
‘??? tried multiple lines but it gives “object” error

objdoc.ActiveDocument.Content 
objdoc.Collapse Direction:=wdCollapseEnd 
objSelection.Paste.Paste 

Any assistance will be helpful

Leave a Reply

Your email address will not be published. Required fields are marked *