-
Jul 24th, 2024, 01:34 PM
#1
Thread Starter
New Member
Replacing a selected image with clipboard contents
I have a document with hundreds of image placeholders that I need to replace with images from a source on the web. After doing "Copy image" on the web, I need to come back to MS Word, right-click the image, select "Change picture", then "From clipboard". I found the VB line below, but all it does is knock out the existing graphic and paste in the new, which does not retain the original dimensions. I need the original image properties/dimensions, and be able to just replace the contents with the clipboard. Ideally, I'd like to be able to assign this to a keyboard shortcut, so I don't have to go through multiple clicks over and over.
Sub ChangePic()
Selection.PasteSpecial Link:=False, DataType:=wdPasteMetafilePicture, Placement:=wdInLine, DisplayAsIcon:=False End Sub
I'd greatly appreciate any help.
Last edited by geckoz100; Jul 24th, 2024 at 01:50 PM.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|