Resize In-line images with VB ?

B

blueguy

I am trying to resize in-line images using VB. I had limited success with the
code below (found online and in the help index I am not a VB programer).
Within a set of 3 images, the first two were reduced 80% but the third one
got larger (112%). Note: These images have been pasted into Word from another
program. I can have up to 100 images in repetative reports that I need to
shrink so any help would be appreciated.

Sub ResetImages()

For Each ishape In ActiveDocument.InlineShapes
ishape.ScaleWidth = 80
ishape.ScaleHeight = 80

Next ishape

End Sub
 

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