01-23-2002, 09:56 PM
Hello all, i'm wondernig how you can space in a msg box. I know it has something to do with vbCrlf...well i think thats what it is but i dont know how to put it. Any help??
Thanks in advance :).
01-23-2002, 09:58 PM
Including vbCrLf in between text will break it up in multiple lines.
MsgBox "This is line one" & vbCrLr & "This is line two"
01-23-2002, 10:48 PM
vbCrLf is more "proper", but I personally use vbNewLine, as it's easier to type. Just to point out the options :)
01-24-2002, 12:32 AM
You can also use a statement like this:
msgbox "First line" & chr(13) & "Second line"
chr(13) means "Enter" key.
01-24-2002, 12:55 AM
Shouldn't use chr(..)'s anymore, just use the built in VB ones.
01-24-2002, 07:55 AM
and by the way, Chr(13) is not the same as the Enter Key. Chr(13) & Chr(10) would be the same as the Enter key.