In just a normal text box...often the user will use the enter key to start a
new line
one
two
three
There is no spaces in the above..as each word in the text box is on a new
line. So, do your users hit ctrl-enter? Or, in fact did you set the enter
key in the "other" tab to actually start a new line in the text box?
So, really, it is possible that you want to could more then just spaces....
The way I would approach this is to change line new lines into a space, and
do a count.
dim strBuf as string
strBuf = replace(me.MyTxtBox,vbCrLf, " ")
intWordCount = ubound(split(strBuf," "))
The above will give you the number of spaces...and the word could would be +
1. So,
words...and presumably ..this is the number of spaces less one.....
intWordCount = intWordCount + 1