Sub SamePicSize()
Dim i As Integer, c As Integer
Dim h As Double, w As Double
With ActiveSheet
c = .Shapes.Count
If c <= 1 Then Exit Sub
h = .Shapes(1).Height
w = .Shapes(1).Width
For i = 2 To c
'https://msdn.microsoft.com/VBA/Office-Shared-VBA/articles/msoautoshapetype-enumeration-office
If .Shapes(i).AutoShapeType = msoShapeRectangle Then '1
.Shapes(i).Width = w
.Shapes(i).Height = h
End If
Next i
End With
End Sub
Hi ,
If this is a one-off exercise , what is the need for a macro ?
Select any one picture , press CTRL A to select all pictures , right-click and deselect the checkboxes Lock aspect ratio and Relative to original picture size.
Now , set the picture height and width to what ever you want.
Narayan