In a textbox, I would like to test whether the textbox
has multiple lines. However, I do not think the multiline
property is what I need to use to test for this because
what I really want to know is if the user has pressed
enter. Am I searching for carriage returns in the
textbox, then? If so, how do I do that?
Thanks for any help
Jonathan West - 24 Nov 2004 16:59 GMT
> In a textbox, I would like to test whether the textbox
> has multiple lines. However, I do not think the multiline
[quoted text clipped - 4 lines]
>
> Thanks for any help
Hi Rem
Try this
If InStr(TextBox1.Text, vbCr) > 0 Then
MsgBox "user pressed Enter when typing text"
End If

Signature
Regards
Jonathan West - Word MVP
www.intelligentdocuments.co.uk
Please reply to the newsgroup