Naming Slides

D

dchman

I have a similar question, but it related to naming shapes on a slide. I
want to refer to specific shapes on a slide in VBA code, using something like

Set shpChart = theSlide.Shapes(strShapeName)

Can you point me in the right direction?

thanks
 
D

dchman

I actually looked at that example and it seemed to work. However, the names
don't seem to persist. After saving, closing, then reopening the
presentation, the object names revert to the original names. Do you know if
I am doing something wrong?

And thanks for the quick response.
 
D

David M. Marcovitz

That's strange. I've never seen the object names not persist. I'm wondering
if the file is being properly saved after naming. Are you doing anything
else besides naming the objects before closing? My thought (and I'm just
guessing here) is that when you use VBA to change the name of an object,
PowerPoint isn't recognizing the file as being changed. Try changing
something on a slide (type something or add another object) after you
change the names. Then save your file. This is just a guess because I have
never seen this problem before.
--David

--
David M. Marcovitz
Microsoft PowerPoint MVP
Director of Graduate Programs in Educational Technology
Loyola College in Maryland
Author of _Powerful PowerPoint for Educators_
http://www.PowerfulPowerPoint.com/
 
D

dchman

That trick worked. thanks
--
dchman


David M. Marcovitz said:
That's strange. I've never seen the object names not persist. I'm wondering
if the file is being properly saved after naming. Are you doing anything
else besides naming the objects before closing? My thought (and I'm just
guessing here) is that when you use VBA to change the name of an object,
PowerPoint isn't recognizing the file as being changed. Try changing
something on a slide (type something or add another object) after you
change the names. Then save your file. This is just a guess because I have
never seen this problem before.
--David

--
David M. Marcovitz
Microsoft PowerPoint MVP
Director of Graduate Programs in Educational Technology
Loyola College in Maryland
Author of _Powerful PowerPoint for Educators_
http://www.PowerfulPowerPoint.com/
 
Top