Just pasted an image to MS Word in VBA using the following
wordApp.Selection.PasteSpecial DataType:=wdPasteMetafilePicture, Placement:=wdInLine
My thinking is to move one char left and then select next object, but I don't know how to do this.
EDIT:
Well here are some encoraging development, using the following line, I was able to select the paragraph which include the image, but I can't manipulate it because it's selecting a range. Do anyone know how I can pin down the image inside the selection?
wordApp.Selection.Expand wdParagraph
Here is what I used:
wordApp.Selection.Find.Execute replace:=2
wordApp.Selection.Expand wdParagraph
wordApp.Selection.InlineShapes(1).Select
I was also doing the same. It seems that after pasting an image into word, its already selected. You can just use the selected object with the simple code below:
Selection.InlineShapes(1).Select
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With