View Single Post
 
Old 10-23-2023, 01:07 AM
hank1234 hank1234 is offline Windows 11 Office 2016
Novice
 
Join Date: Sep 2020
Posts: 9
hank1234 is on a distinguished road
Default

Quote:
Originally Posted by Guessed View Post
If you aren't getting consistent behaviour of the locked aspect ratio then ignore it and make use of the scaleheight and scalewidth eg
Code:
aShp.Width = CentimetersToPoints(3.94)
aShp.ScaleHeight = aShp.ScaleWidth
Unfortunately, leaving the LockAspectRatio out and adding these two lines of code doesn't do the trick either. I get an error 5148 in the new line of code
Reply With Quote