Shapes XY position in VBA (setting and reading)

G

Guest

I can't seen to find the correct syntax to set the absolute XY position of
say a shape (although I can do relative using .IncrementTop/Left.

I would also like to return a shapes position.

Can anyone help with the syntax please?
 
B

Bill Dilworth

Hi FP,

For shape #1 on slide #1 the left most point would be set or read with
ActivePresentation.Slides(1).Shapes(1).Left

Likewise, the topmost would be
ActivePresentation.Slides(1).Shapes(1).Top

These are measured in points, which are harder to explain than most things.
Usually it works out to distance in inches times 72.
Is there more of the question lurking behind this question? Usually people
will find the left/top before the increment stuff.


--
Bill Dilworth
A proud member of the Microsoft PPT MVP Team
Users helping fellow users.
http://billdilworth.mvps.org
-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_
vestprog2@ Please read the PowerPoint FAQ pages.
yahoo. They answer most of our questions.
com www.pptfaq.com
..
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top