agmorgan
May 13th, 2004, 05:38 AM
Im having the same problem as this guy.
http://www.vbforums.com/showthread.php?s=&threadid=200467&highlight=chart+resize
I dont want my plot of a circle to change to an ellipse when I resize my chart.
The code to do it in VBA is ActiveSheet.Shapes("Chart 1").ScaleWidth 0.8, msoFalse, msoScaleFromTopLeft
ActiveSheet.Shapes("Chart 1").ScaleHeight 0.88, msoFalse, msoScaleFromTopLeft This resizes by 0.8 and keeps the proportions.
I got this by recording a macro whilst holding down shift and resizing.
What I am trying to do, is have a worksheet event that ONLY allows proportional resizing.
ie when I resize the chart, it always gives the effect of shift being held down at the same time
http://www.vbforums.com/showthread.php?s=&threadid=200467&highlight=chart+resize
I dont want my plot of a circle to change to an ellipse when I resize my chart.
The code to do it in VBA is ActiveSheet.Shapes("Chart 1").ScaleWidth 0.8, msoFalse, msoScaleFromTopLeft
ActiveSheet.Shapes("Chart 1").ScaleHeight 0.88, msoFalse, msoScaleFromTopLeft This resizes by 0.8 and keeps the proportions.
I got this by recording a macro whilst holding down shift and resizing.
What I am trying to do, is have a worksheet event that ONLY allows proportional resizing.
ie when I resize the chart, it always gives the effect of shift being held down at the same time