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 / April 2008

Tip: Looking for answers? Try searching our database.

changes shape.name in powerpoint does not work

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Christian Hansen - 10 Apr 2008 15:31 GMT
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
Steve Rindsberg - 10 Apr 2008 23:08 GMT
> Hi,
>
[quoted text clipped - 13 lines]
> the correct name is shown. But after saving, closing and opening again, the
> shape has its original name again...

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

Signature

--
Steve Rindsberg, PPT MVP
PPT FAQ:  www.pptfaq.com
PPTools:  www.pptools.com

================================================
Christian Hansen - 11 Apr 2008 08:23 GMT
> 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...
vindys - 11 Apr 2008 12:05 GMT
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?

> > 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...
Christian Hansen - 11 Apr 2008 15:40 GMT
> 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
Steve Rindsberg - 11 Apr 2008 21:04 GMT
> > For textbox I can just rename name and save it and it stays there after
> > close and open.
[quoted text clipped - 8 lines]
>
> all textboxes and shapes on certain slides. on other slides it works

Thanks for mentioning this again.  You may have a corrupted presentation.
Try "round-tripping" it to HTML and back, then re-run your macro.

HTML "Round-tripping" to repair corruption
http://www.pptfaq.com/FAQ00526.htm

Signature

--
Steve Rindsberg, PPT MVP
PPT FAQ:  www.pptfaq.com
PPTools:  www.pptools.com

================================================
Steve Rindsberg - 11 Apr 2008 21:04 GMT
> > 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...

You're using PPT 2003 or earlier then?  In 2007 you can give several shapes the
same name.  That's not a feature, by any means.

I'm not sure what might be causing this then.  Have you checked the file access
time/date to ensure that it's really getting written?

Signature

--
Steve Rindsberg, PPT MVP
PPT FAQ:  www.pptfaq.com
PPTools:  www.pptools.com

================================================
 
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



©2008 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.