shruti1
11-17-2020, 06:53 AM
I was just introducing you to some of the controls. Here is the fish.
Lets say you have a 1/2 white border around the image.
Sub CropDemo()
Dim oILS As InlineShape
Set oILS = Selection.InlineShapes(1)
With oILS
.PictureFormat.CropLeft = 36
.PictureFormat.CropTop = 36
.PictureFormat.CropRight = 36
.PictureFormat.CropBottom = 36
End With
With oILS
.LockAspectRatio = True
.Height = 360
End With
lbl_Exit:
Exit Sub
End Sub
I want to crop all the pictures at once in my document. Please help
Lets say you have a 1/2 white border around the image.
Sub CropDemo()
Dim oILS As InlineShape
Set oILS = Selection.InlineShapes(1)
With oILS
.PictureFormat.CropLeft = 36
.PictureFormat.CropTop = 36
.PictureFormat.CropRight = 36
.PictureFormat.CropBottom = 36
End With
With oILS
.LockAspectRatio = True
.Height = 360
End With
lbl_Exit:
Exit Sub
End Sub
I want to crop all the pictures at once in my document. Please help