Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / General PowerPoint Questions / January 2007

Tip: Looking for answers? Try searching our database.

Shapes XY position in VBA (setting and reading)

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
flying_pig - 02 Jan 2007 12:22 GMT
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?
Bill Dilworth - 02 Jan 2007 12:51 GMT
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.

Signature

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
.

>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?
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.