Christea685
New Member
- Joined
- Jan 24, 2014
- Messages
- 35
Hi All!
I'm trying to make this macro work to help resize images for our fashion Look Book. In theory, it should work. But of course it does not Here is the code we are using:
I want all my pictures to have a height of 7.05 inches and a width of 4. The height comes out different everytime depending on the scaling of the template I'm using. I need it to adjust accordingly. I'm open to having the image move into merged cells (I read about someone doing that here) as long as it will first adjust the height and then crop the sides (so the orientation stays the same). Any help/suggestions would be SO appreciated!
I'm trying to make this macro work to help resize images for our fashion Look Book. In theory, it should work. But of course it does not Here is the code we are using:
Code:
Sub BIGcrop()
Selection.Height = 507.6
x = Selection.ShapeRange.Width
y = x / 2
Z = y - 144
Selection.ShapeRange.PictureFormat.CropLeft = Z + 185
Selection.ShapeRange.PictureFormat.CropRight = Z + 185
Selection.ShapeRange.LockAspectRatio = msoFalse
Selection.ShapeRange.Width = 288
Selection.ShapeRange.LockAspectRatio = msoTrue
End Sub
I want all my pictures to have a height of 7.05 inches and a width of 4. The height comes out different everytime depending on the scaling of the template I'm using. I need it to adjust accordingly. I'm open to having the image move into merged cells (I read about someone doing that here) as long as it will first adjust the height and then crop the sides (so the orientation stays the same). Any help/suggestions would be SO appreciated!