Sub DispMsgBox()
Dim i As Byte
Dim msgcontent As String
i = 1
msgcontent = ""
While i <= 15
If Trim(Len(msgcontent)) = 0 Then
msgcontent = i
Else
msgcontent = msgcontent & vbCrLf & i
End If
i = i + 1
Wend
MsgBox msgcontent, vbInformation
End Sub
The keyword vbCrLf is used for inserting a new line character.. you can replace the same with any seperator such as Space or any other character