A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Powerpoint, Publisher and Visio » Powerpoint
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

PPT 2007 Bug?



 
 
Thread Tools Display Modes
  #1  
Old May 20th, 2008, 07:19 PM posted to microsoft.public.powerpoint
Burnsie
external usenet poster
 
Posts: 19
Default PPT 2007 Bug?

In 2003 I could do the following:

shape.textframe.textrange.paragraphs(i).insertafte r.paste

Now I get a runtime error:
The specified parameter has an invalid value.

Even running the following snippet from the help files produces the same
error.

Application.ActivePresentation.Slides(1).Shapes(1) .TextFrame _
.TextRange.InsertAfter.Paste

Yet, if I replace the paste with some text string, then all is well.
However, it is important that I be able to paste because I need to maintain
the formating from the section that I moving to this section of the slide.

Thanks,

Burnsie
  #2  
Old May 20th, 2008, 07:38 PM posted to microsoft.public.powerpoint
Shyam Pillai
external usenet poster
 
Posts: 622
Default PPT 2007 Bug?

Yes, this is a bug with the InsertAfter in PPT 2007 reported by, Word MVP,
Jonathan West. Use the following code instead to get the same effect.

Application.ActivePresentation.Slides(1).Shapes(1) .TextFrame _
.TextRange.InsertAfter(" ").Paste

Regards,
Shyam Pillai

Image Importer Wizard
http://skp.mvps.org/iiw.htm

"Burnsie" wrote in message
...
In 2003 I could do the following:

shape.textframe.textrange.paragraphs(i).insertafte r.paste

Now I get a runtime error:
The specified parameter has an invalid value.

Even running the following snippet from the help files produces the same
error.

Application.ActivePresentation.Slides(1).Shapes(1) .TextFrame _
.TextRange.InsertAfter.Paste

Yet, if I replace the paste with some text string, then all is well.
However, it is important that I be able to paste because I need to
maintain
the formating from the section that I moving to this section of the slide.

Thanks,

Burnsie


  #3  
Old May 23rd, 2008, 02:24 PM posted to microsoft.public.powerpoint
Burnsie
external usenet poster
 
Posts: 19
Default PPT 2007 Bug?

Shyam,

Thanks a lot. This is exactly what we need.

Burnsie

"Shyam Pillai" wrote:

Yes, this is a bug with the InsertAfter in PPT 2007 reported by, Word MVP,
Jonathan West. Use the following code instead to get the same effect.

Application.ActivePresentation.Slides(1).Shapes(1) .TextFrame _
.TextRange.InsertAfter(" ").Paste

Regards,
Shyam Pillai

Image Importer Wizard
http://skp.mvps.org/iiw.htm

"Burnsie" wrote in message
...
In 2003 I could do the following:

shape.textframe.textrange.paragraphs(i).insertafte r.paste

Now I get a runtime error:
The specified parameter has an invalid value.

Even running the following snippet from the help files produces the same
error.

Application.ActivePresentation.Slides(1).Shapes(1) .TextFrame _
.TextRange.InsertAfter.Paste

Yet, if I replace the paste with some text string, then all is well.
However, it is important that I be able to paste because I need to
maintain
the formating from the section that I moving to this section of the slide.

Thanks,

Burnsie



 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 11:45 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.