S
Steve D
How do I determine if the last character (before the paragraph return) is a
space? Thanks.
space? Thanks.
Thanks, Greg. That will work.
I was trying to get at the next-to-last character (before the CR)
with the "last" property.
Why does this work...
Set MyRange = ActiveDocument.Paragraphs(1).Range.Characters.Last
But this won't work...
NumChars = ActiveDocument.Paragraphs(1).Range.Characters.Count
Set MyRange =
ActiveDocument.Paragraphs(1).Range.Characters(NumChars - 2)
Steve D said:Thanks, Greg. That will work.
I was trying to get at the next-to-last character (before the CR) with the
"last" property.
Why does this work...
Set MyRange = ActiveDocument.Paragraphs(1).Range.Characters.Last
But this won't work...
NumChars = ActiveDocument.Paragraphs(1).Range.Characters.Count
Set MyRange = ActiveDocument.Paragraphs(1).Range.Characters(NumChars -
2)
I've got an appropriate index to the Characters.
Jean-Guy Marcil said:I got the impression you were targeting the "3" in my example. So you need
ActiveDocument.Paragraphs(1).Range.Characters(NumChars - 1)
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.