Function WordTrim(origStr,numWords)
Dim words
words = Split(origStr," ")
Dim count
If UBound(words) + 1 <= numWords Then
'we don't need to do anything, the sentance is shorter than numWords
WordTrim = origStr
Else
'we need to trim words off
Do Until count >= numWords
WordTrim = WordTrim & words(count)
count = count + 1
Loop
WordTrim = WordTrim & "..."
End If
End Function