Hi All,
I have the code that loops through all my worksheets and resizes all the images but is there anyway to make it so that the images also align center within the cell?
Sub ChangeAllPics()
Dim s As Shape
Dim ws As Worksheet
For Each ws In ActiveWorkbook.Sheets
For Each s In ws.Shapes
s.LockAspectRatio = msoFalse
s.Width = 62
s.Height = 63
Next s
Next ws
End Sub
Would appreciate the help!
I have the code that loops through all my worksheets and resizes all the images but is there anyway to make it so that the images also align center within the cell?
Sub ChangeAllPics()
Dim s As Shape
Dim ws As Worksheet
For Each ws In ActiveWorkbook.Sheets
For Each s In ws.Shapes
s.LockAspectRatio = msoFalse
s.Width = 62
s.Height = 63
Next s
Next ws
End Sub
Would appreciate the help!