D
dpdalton
I tried to record a macro that would do two things to an image where the
cursor is located: resize it to a standard width (allowing the ratio to
control the height) and change its layout to Square, Right.
All went fine through the sizing, but when I clicked on the 'Layout' tab,
all the options were "greyed-out" so that I could not specify the layout I
wanted.
1. Why does this happen?
2. What can I do to accomplish my goal?
Here's what was recorded to the point where I could not select "Square".
'
Selection.InlineShapes(1).Fill.Visible = msoFalse
Selection.InlineShapes(1).Fill.Solid
Selection.InlineShapes(1).Fill.Transparency = 0#
Selection.InlineShapes(1).Line.Weight = 0.75
Selection.InlineShapes(1).Line.Transparency = 0#
Selection.InlineShapes(1).Line.Visible = msoFalse
Selection.InlineShapes(1).LockAspectRatio = msoTrue
Selection.InlineShapes(1).Height = 69.1
Selection.InlineShapes(1).Width = 69.1
Selection.InlineShapes(1).PictureFormat.Brightness = 0.5
Selection.InlineShapes(1).PictureFormat.Contrast = 0.5
Selection.InlineShapes(1).PictureFormat.ColorType = msoPictureAutomatic
Selection.InlineShapes(1).PictureFormat.CropLeft = 0#
Selection.InlineShapes(1).PictureFormat.CropRight = 0#
Selection.InlineShapes(1).PictureFormat.CropTop = 0#
Selection.InlineShapes(1).PictureFormat.CropBottom = 0#
End Sub
Thanks,
Paul
cursor is located: resize it to a standard width (allowing the ratio to
control the height) and change its layout to Square, Right.
All went fine through the sizing, but when I clicked on the 'Layout' tab,
all the options were "greyed-out" so that I could not specify the layout I
wanted.
1. Why does this happen?
2. What can I do to accomplish my goal?
Here's what was recorded to the point where I could not select "Square".
'
Selection.InlineShapes(1).Fill.Visible = msoFalse
Selection.InlineShapes(1).Fill.Solid
Selection.InlineShapes(1).Fill.Transparency = 0#
Selection.InlineShapes(1).Line.Weight = 0.75
Selection.InlineShapes(1).Line.Transparency = 0#
Selection.InlineShapes(1).Line.Visible = msoFalse
Selection.InlineShapes(1).LockAspectRatio = msoTrue
Selection.InlineShapes(1).Height = 69.1
Selection.InlineShapes(1).Width = 69.1
Selection.InlineShapes(1).PictureFormat.Brightness = 0.5
Selection.InlineShapes(1).PictureFormat.Contrast = 0.5
Selection.InlineShapes(1).PictureFormat.ColorType = msoPictureAutomatic
Selection.InlineShapes(1).PictureFormat.CropLeft = 0#
Selection.InlineShapes(1).PictureFormat.CropRight = 0#
Selection.InlineShapes(1).PictureFormat.CropTop = 0#
Selection.InlineShapes(1).PictureFormat.CropBottom = 0#
End Sub
Thanks,
Paul