Originally Posted by
fumei
If I put:
13 0 999 -=LkL=-Santa 3900 77.226.169.207:12203 52009 5000
as the first paragraph (Paragraph(1))
and execute:
[vba]
Sub whatever()
Dim r As Range
Set r = ActiveDocument.Paragraphs(1).Range
MsgBox r.Text & Chr(10) & r.Words(4)
End Sub
[/vba]
I get:
13 0 999 -=LkL=-Santa 3900 77.226.169.207:12203 52009 5000
-=
13 Word(1)
0 Word(2)
999 Word(3)
-= Word(4)
Yes, -= is the fourth "word" to VBA. All punctuation is a separate "word" to VBA. Including the period at the end.
This is a sentence.
The above (to VBA) has six words.
1 This
2 is
3 a
4 sentence
5 .
6 the paragraph mark
Again, in Tinbendr's words: "If you had a more defined request, we might be able to steer you in the right direction."