Need a macro or something for naming and X & Y co-ordinates for shapes in Powerpoint

  • Thread starter Thread starter Tyron
  • Start date Start date
T

Tyron

Need a macro or something for naming and X & Y co-ordinates for shapes
and objects in Powerpoint, preferably at the same time
 
For naming shapes, check out example 8.7 at my site:

http://www.loyola.edu/education/PowerfulPowerPoint/

Click on "Examples by Chapter" and "Chapter 8" to find it. For the X and Y
coordinates, you can add something like this:

MsgBox "The X Coordinate is " & ActiveWindow.Selection.ShapeRange.Left
MsgBox "The Y Coordinate is " & ActiveWindow.Selection.ShapeRange.Top

Of course, this is all designed to work in Normal view, so it would be
different if you want it to work in Slide Show View.

--David

David Marcovitz
Microsoft PowerPoint MVP
Author o f _Powerful PowerPoint for Educators_
http://www.loyola.edu/education/PowerfulPowerPoint/
 
I need the macro to do the following
1. when a shape is selected it shows current name and x&y co-ordinates
2. Give option to change the above to new name and new value

Cheers

Thanks for all your help
 
I need the macro to do the following
1. when a shape is selected it shows current name and x&y co-ordinates

For XY coords you don't really need a macro. Doubleclick the shape and use the
Size and Position tabs. Note that if you want to use Points rather than the
default units, you can type e.g. 72pt
2. Give option to change the above to new name and new value

Edit the name of a shape
http://www.rdpslides.com/pptfaq/FAQ00584.htm
 

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

Back
Top