C
Charlotte E.
Hi Guys,
I'm trying to chop a huge picture on a worksheet, so that it fits
exately into a square autofigure on the same worksheet.
The code I'm using is:
Counter = 0
Do While WS.Shapes(PictureName).Left < WS.Shapes(ShapeName).Left
WS.Shapes(PictureName).PictureFormat.CropLeft = _
WS.Shapes(PictureName).PictureFormat.CropLeft + 0.28
Counter = Counter + 1
If Counter > 10000 Then Exit Do
Loop
....and the code works fine
It chops the picture in the worksheet so that the left side of the
picture is exately at the left side of the autofigure...
....but...
....for sone strange reason the picture get distored, because the picture
aparrently automatically changes size during the process?!?
I've tried to avoid this by turning of aspect ratio, with
LockAspectRatio = msoFalse, but to no use...
And the absolutely worst thing is, that the units used for chopping are
not the same units used for sizing, so I can't resize according to the
choping afterwards!!!
What am I doing wrong - please, help???
TIA,
CE
I'm trying to chop a huge picture on a worksheet, so that it fits
exately into a square autofigure on the same worksheet.
The code I'm using is:
Counter = 0
Do While WS.Shapes(PictureName).Left < WS.Shapes(ShapeName).Left
WS.Shapes(PictureName).PictureFormat.CropLeft = _
WS.Shapes(PictureName).PictureFormat.CropLeft + 0.28
Counter = Counter + 1
If Counter > 10000 Then Exit Do
Loop
....and the code works fine
It chops the picture in the worksheet so that the left side of the
picture is exately at the left side of the autofigure...
....but...
....for sone strange reason the picture get distored, because the picture
aparrently automatically changes size during the process?!?
I've tried to avoid this by turning of aspect ratio, with
LockAspectRatio = msoFalse, but to no use...
And the absolutely worst thing is, that the units used for chopping are
not the same units used for sizing, so I can't resize according to the
choping afterwards!!!
What am I doing wrong - please, help???
TIA,
CE