changes shape.name in powerpoint does not work

C

Christian Hansen

Hi,

I am afcing a strange problem: In a certain presentation I am not able to
change the names of some shape, like textboxes. This problem exists then for
alle shapes on a slide. On other slides it work perfectly, again for all
shapes.

To cahnge the name I select the shape an run a makro:

ActiveWindow.Selection.ShapeRange(1).Name="test23"

If I then read the name by

?ActiveWindow.Selection.ShapeRange(1).Name

the correct name is shown. But after saving, closing and opening again, the
shape has its original name again...

Ideas??
Thanks,
Christian
 
C

Christian Hansen

Check to see if there's already an existing shape with the same name.
That
would cause problems.

No, the name is unique. If an existing name is used, you get an error
message...
 
V

vindys

Hansen,

For textbox I can just rename name and save it and it stays there after
close and open. Which version ppt you using? does this happens to all the
textboxes or just some shapes? does this happens all the time?
Just checking, did you saved the presentation after running the macro?
 
C

Christian Hansen

For textbox I can just rename name and save it and it stays there after
close and open.

That was what I expected ;-)
Which version ppt you using?

Powerpoint 2003 SP3
does this happens to all the textboxes or just some shapes?

all textboxes and shapes on certain slides. on other slides it works
does this happens all the time?
yes

Just checking, did you saved the presentation after running the macro?

yes
 

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

Top