macroppt123
06-01-2011, 11:59 AM
Hi,
I am trying to determine the units that the below numbers are in for width and height. The number 700 and 350 are in what units? The chart in powerpoint show these units in inches.
example 700 gives width of 7.42 and 350 gives a height of 4.86. What units are the number in ?
Is it pixels? I tried mm, cm and m conversion but those are not the units for the numbers.
Dim sr As PowerPoint.ShapeRange
Set sr = PPApp.ActiveWindow.Selection.ShapeRange
' Resize:
sr.Width = awidth
sr.Height = aheight
sr.LockAspectRatio = lockaspect
If sr.Width > 700 Then
sr.Width = 700
End If
If sr.Height > 350 Then
sr.Height = 350
End If
I am trying to determine the units that the below numbers are in for width and height. The number 700 and 350 are in what units? The chart in powerpoint show these units in inches.
example 700 gives width of 7.42 and 350 gives a height of 4.86. What units are the number in ?
Is it pixels? I tried mm, cm and m conversion but those are not the units for the numbers.
Dim sr As PowerPoint.ShapeRange
Set sr = PPApp.ActiveWindow.Selection.ShapeRange
' Resize:
sr.Width = awidth
sr.Height = aheight
sr.LockAspectRatio = lockaspect
If sr.Width > 700 Then
sr.Width = 700
End If
If sr.Height > 350 Then
sr.Height = 350
End If