Naming Slides

  • Thread starter Thread starter Guest
  • Start date Start date
Vegasvoz said:
How can I name powerpoint slides each individually

You can use VBA for one. But slides actually have, in effect, two names, the
real name and a kind of name "property".

We can change the property but not the real name. Depending on what you want
to do, that may or may not work.

So ... what do you need to do? How come you need to change the name?
 
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
 
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.
 
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/
 
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/
 
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?

Sure ... here's an example of naming a shape:

Edit the name of a shape
http://www.rdpslides.com/pptfaq/FAQ00584.htm
 
David M. 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.

Good one. That may not be the problem in this case, but in fact changing the
name of a shape doesn't set the "dirty" flag.

Another possibility ... if there's another shape of the same name on the slide
and you've set On Error Resume Next, there'll be an error, it won't be trapped,
no yelling, no screaming ... but the name of the shape won't change.
 

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