Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to Force new line in MsgBox?

Status
Not open for further replies.

caro8pare

Programmer
Jul 28, 2004
56
0
0
HK
I have 2 sentences to show in my MsgBox.
How can I force that after the first sentence, the second one will be write under the first and not after?
 
Many, many ways:

Private Sub Command1_Click()
MsgBox ("This is a test" & Chr$(13) & "This is the second line.")
MsgBox ("This is a test" & vbCr & "This is the second line.")
MsgBox ("This is a test" & vbLf & "This is the second line.")
MsgBox ("This is a test" & vbCrLf & "This is the second line.")
MsgBox ("This is a test" & vbNewLine & "This is the second line.")
End Sub

Swi
 
I have been cross posting alot lately. My apologizes BeginnerProgrammer.

Swi
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top