Re: How to counting words in a string variable?
- From: Steve Rindsberg <abuse@xxxxxxxxxxxxx>
- Date: Mon, 25 Sep 2006 11:46:55 EDT
In article <uihGloK4GHA.1068@xxxxxxxxxxxxxxxxxxxx>, Js wrote:
Hi All:
Sorry to ask so many questions - I need to count words, using the
Words.Count Method, in a variable declared as String.
Does anyone know how to do this? I'm being unsuccessful in getting this text
in a TextRange that Words.Counts wants.
See Shyam's answer to your earlier post (it's better to keep all of your
messages on a given topic in the same thread, by the way).
His suggestion is that you create a dummy text box and having done that:
(assuming a reference to the text box in oSh)
With oSh.TextFrame.TextRange
.Text = YourString
' do your word count stuff here
End With
oSh.Delete
-----------------------------------------
Steve Rindsberg, PPT MVP
PPT FAQ: www.pptfaq.com
PPTools: www.pptools.com
================================================
.
- Follow-Ups:
- References:
- Prev by Date: Re: PowerPoint to XML
- Next by Date: Re: Problem opening powerpoint file
- Previous by thread: Re: How to counting words in a string variable?
- Next by thread: Re: How to counting words in a string variable?
- Index(es):
Relevant Pages
|