Units for width and height for charts to powerpoint

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
 

Excel Facts

Did you know Excel offers Filter by Selection?
Add the AutoFilter icon to the Quick Access Toolbar. Select a cell containing Apple, click AutoFilter, and you will get all rows with Apple
They are in points = 1/72 inch.
 
Upvote 0
The height works fine. 378 equals 5.25 inches. But the width gives me 8.01 for 636.48 .

I have to convert 8.84 inches to points.

Are you sure width is also in points?

I did 1 point = 1/72 inch.

Thanks
 
Upvote 0

Forum statistics

Threads
1,214,918
Messages
6,122,241
Members
449,075
Latest member
staticfluids

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top