vbanovice123
Board Regular
- Joined
- Apr 15, 2011
- Messages
- 91
Hi,
I am not sure what units the below numbers are in . Is it pixels? The chart properties are usually in inches. example : height is 3.47 and width is 5.3 inches.
But what is the corresponding units when we assign a number to the width and height in the vba code? Any help is appreciated.
Thanks!
' Resize:
sr.Width = awidth
sr.Height = aheight
sr.LockAspectRatio = lockaspect
If sr.Width > 500 Then
sr.Width = 500
End If
If sr.Height > 250 Then
sr.Height = 250
End If
I am not sure what units the below numbers are in . Is it pixels? The chart properties are usually in inches. example : height is 3.47 and width is 5.3 inches.
But what is the corresponding units when we assign a number to the width and height in the vba code? Any help is appreciated.
Thanks!
' Resize:
sr.Width = awidth
sr.Height = aheight
sr.LockAspectRatio = lockaspect
If sr.Width > 500 Then
sr.Width = 500
End If
If sr.Height > 250 Then
sr.Height = 250
End If