G
Gina
Hi.
I have to break down a string into some more convenient parts... but the
string should be cut where a <space> is
If numLetters > fixedLen Then
strTemp = Left(strToComp, fixedLen)
strRest = Mid(strToComp, fixedLen + 1)
pos = InStr(fixedLen - 10, strTemp, " ")
If pos <> 0 Then
posTemp = pos - 1
Else
posTemp = pos
End If
--> strFirst = Left$(strTemp & vbCrLf, posTemp)
.TypeText Text:=strFirst
.MoveDown Unit:=wdLine, Count:=1
strRest = Mid$(strToComp, pos + 1)
strTemp = strRest
.....
Had some problems --> when pos = 0 so I use posTemp
Think that could give again problems if a user types more than one space ...
maybe 10, which could easily be
what I actually need is not the fixedLen - 10 (assuming that most words
aren't 10 chars long ... oh dear but I don't know what I could use instead
hope I could explain my problem somehow clear ?
I would be grateful for any help or other suggetions how to get it sorted
properly
TIA
Gina
I have to break down a string into some more convenient parts... but the
string should be cut where a <space> is
If numLetters > fixedLen Then
strTemp = Left(strToComp, fixedLen)
strRest = Mid(strToComp, fixedLen + 1)
pos = InStr(fixedLen - 10, strTemp, " ")
If pos <> 0 Then
posTemp = pos - 1
Else
posTemp = pos
End If
--> strFirst = Left$(strTemp & vbCrLf, posTemp)
.TypeText Text:=strFirst
.MoveDown Unit:=wdLine, Count:=1
strRest = Mid$(strToComp, pos + 1)
strTemp = strRest
.....
Had some problems --> when pos = 0 so I use posTemp
Think that could give again problems if a user types more than one space ...
maybe 10, which could easily be
what I actually need is not the fixedLen - 10 (assuming that most words
aren't 10 chars long ... oh dear but I don't know what I could use instead
hope I could explain my problem somehow clear ?
I would be grateful for any help or other suggetions how to get it sorted
properly
TIA
Gina