S.H.A.D.O.
Well-known Member
- Joined
- Sep 6, 2005
- Messages
- 1,915
Good afternoon,
I have the following code which works well at resizing all the pictures to a set size.
I can't however work out how to centre all the pictures at the same time though!
Any help will be greatly appreciated.
Thanks in advance.
I have the following code which works well at resizing all the pictures to a set size.
I can't however work out how to centre all the pictures at the same time though!
Code:
Sub Resize_Images1()
Dim i As Long
With Application
.ScreenUpdating = False: .DisplayAlerts = False
End With
With ActiveDocument
For i = 1 To .InlineShapes.Count
With .InlineShapes(i)
.ScaleHeight = 40
.ScaleWidth = 40
End With
Next i
End With
With Application
.DisplayAlerts = True: .ScreenUpdating = True
End With
End Sub
Any help will be greatly appreciated.
Thanks in advance.