Shapes XY position in VBA (setting and reading)

  • Thread starter Thread starter Guest
  • Start date Start date
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?
 
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
..
 
Back
Top