Textframe obj and PPT XP

  • Thread starter Thread starter Steven Knight
  • Start date Start date
S

Steven Knight

Hi there,

I have this line of code which tries to take the textual contet of a
textbox and put it into a variable:

StrTxt = aslide.Shapes(i).TextFrame.TextRange.Text

This works fine on PPT 2003 but chokes on XP.

Does anyone know why and perhaps even how to solve?

Regards

Steven
 
Hello Steven,
A line of code out of context has little relevance. The line of code is fine
and will work on all versions 97 or later. You need to post the relevant
segment of the code and not just the line where it fails. You haven't
mentioned the error message either. People are ready to help however there
is very little to suggest in this case with insufficient data.

Please post complete information.

Regards
Shyam Pillai
 
Steven Knight said:
Hi there,

I have this line of code which tries to take the textual contet of a
textbox and put it into a variable:

StrTxt = aslide.Shapes(i).TextFrame.TextRange.Text

This works fine on PPT 2003 but chokes on XP.

Does anyone know why and perhaps even how to solve?

As Shyam's said, we need more information. What error does it give, and does
it give the error on the same shape/same slide in both 2003 and XP?

Note that some shapes can't have text frames. The text frame, if there, may
not have text. It's not clear whether you're checking for this.


--
Steve Rindsberg, PPT MVP
PPT FAQ: www.pptfaq.com
PPTools: www.pptools.com
================================================
Featured Presenter, PowerPoint Live 2004
October 10-13, San Diego, CA www.PowerPointLive.com
================================================
 
Back
Top