Created
June 1, 2017 12:33
-
-
Save ikoner/72d0ee4855e64f576f2d467f49ab1f03 to your computer and use it in GitHub Desktop.
MS Word VBA - resize all images in document
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sub ResizeImages() | |
Dim i As Long | |
With ActiveDocument | |
For i = 1 To .InlineShapes.Count | |
With .InlineShapes(i) | |
.Height = CentimetersToPoints(8) | |
.Width = CentimetersToPoints(8) | |
End With | |
Next i | |
End With | |
End Sub |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment