What is the unit of measure for PowerPoint slides using VBA?

rryanp picture rryanp · Jun 28, 2012 · Viewed 10.8k times · Source

I am using VBA to paste charts/graphs from Access to PowerPoint. Once pasted, I am resizing them using VBA, but it does not allow me to use inches (even though when I do it manually through the shape Properties, the size values there are in inches).

My question is what unit of measure is the number I use in VBA? I assumed pixels and tried to convert using a 96 pixel per inch factor, but that wasn't just right. Now I'm curious about whether it's based on my screen resolution? I can quickly code it (through trial and error) to look good on my machine, but I worry then if somebody else runs it, and they have a different resolution, the slide will look different. (Note that the graphs are having to fit within other shapes.)

If it's not based on screen resolution, does anybody know the dimensions of a slide in whatever unit it's in?

Answer

Tim Williams picture Tim Williams · Jun 28, 2012

Units in ppt VBA are Points (a point is about 1/72 of an inch)