Log in

View Full Version : Re-positioning a table on a slide



jlingle
02-16-2012, 02:42 PM
I am using PowerPoint2010.

I need to re-position a table on a slide depending on the shape of a chart. I've written a line of code that does it (see below). However, the units that move the table up and down are neither centimeters or inches. I've found numbers between 47 and 98 move the table approximately 3/4 of an inch. But, what do these numbers represent? Does anyone know? Thanks.

Code that moves the slide up and down:

ActivePresentation.Slides(1).Shapes("differences").Top=??

John Wilson
02-17-2012, 12:50 AM
PowerPoint code works in POINTS

Have a look at "Points conversions" in out vba tutorials

http://www.pptalchemy.co.uk/powerpoint_hints_and_tips_tutorials.html#vba

jlingle
02-17-2012, 04:26 AM
Thanks John. I've got your "Free Tutorials" bookmarked, although not knowing the units were called "Points" I might not have looked at that one without your direction! Wonder why they could not have just used cm's or inches? That would have been too straight forward for Microsoft. Ah, so much to learn.

John Wilson
02-17-2012, 07:30 AM
Points are the same everywhere. Americans don't understand cm - that's why you can set the grid to 1/8 or 1/12 of a centimetre!!! ;-)