Hello. I am trying resize all the photos in all the sheets to be 3 inches in width only, but maintain aspect ratio. I do not want the photos to move and size with cells. Photos should move with the cells but don't size with cells. It should always maintain the exact width of 3 inches.
Here is what I have so far and it's not working. Please help tweak. Thank you.
Here is what I have so far and it's not working. Please help tweak. Thank you.
VBA Code:
Sub MoveButDontSizeWithCells()
Dim xPic As Picture
On Error Resume Next
Application.ScreenUpdating = False
For Each xPic In ActiveSheet.Pictures
xPic.Placement = xlMoveButDontSize
.ShapeRange.LockAspectRatio =msoTrue
.Width = 300
Next
Application.ScreenUpdating = True
End Sub