message box help (1 Viewer)

Jon123

Registered User.
Local time
Today, 19:10
Joined
Aug 29, 2003
Messages
668
when creating text line for a message box how do you type it in for multiple lines.
 

Mr. B

"Doctor Access"
Local time
Today, 18:10
Joined
May 20, 2009
Messages
1,932
If you want just two lines, one below the other"

Dim strMsg as string
strMsg = "This would be line one!" & vbnewline & "This would be line two."

If you want two lines with a blank line in between the two lines of text:

dim strMsg as string
strMsg = "This would be line one!" & vbnewline & vbnewline & "This is line 2"

HTH
 

Jon123

Registered User.
Local time
Today, 19:10
Joined
Aug 29, 2003
Messages
668
very nice thank you.


jon
 

Mr. B

"Doctor Access"
Local time
Today, 18:10
Joined
May 20, 2009
Messages
1,932
You are quite welcome.

Glad to help.
 

Oldsoftboss

AWF VIP
Local time
Tomorrow, 10:10
Joined
Oct 28, 2001
Messages
2,504
Or Chr(13)

"If you want the message box " & Chr(13) & " to have several lines"
 

Users who are viewing this thread

Top Bottom