I found an online VBA macro that resizes all images in a Word document:
Sub ResizeAllImages()
''
''
Dim oShp As Shape
Dim oILShp As InlineShape
For Each oShp In ActiveDocument.Shapes
With oShp
.Height = AspectHt(.Width, .Height, _
CentimetersToPoints(11))
.Width = CentimetersToPoints(11)
End With
Next
For Each oILShp In ActiveDocument.InlineShapes
With oILShp
.Height = AspectHt(.Width, .Height, _
CentimetersToPoints(11))
.Width = CentimetersToPoints(11)
End With
Next
End Sub
I could not find the name of the method that I could use to center all the images. Does anyone know what I need to add, and where should I add it?
Finally, I would like to remove images that I find too small. How would I do ... If the width of the shape is less than 5 and the height of the shape is less than 5, delete the shape.
, .
, -, . , . , , .
bbint