How can I create a line break in a msgbox?

I am very familiar with VBA for Excel and thus I am used to the command vbnewline. It creates a line break between two ampersands.

Sub Test_LB_msgbox

msgbox("Test" & vbnewline & _
"some more text" & vbnewline & _ 
"asdf")

End Sub

However in Basic this command (obviously) does not work. So far I have been unsuccessful to find “vbnewline”'s equivalent in Basic. Is there one?

Option Compatible

Sub Test_LB_msgbox

msgbox("Test" & vbnewline & _
"some more text" & vbnewline & _ 
"asdf")

End Sub
1 Like

Haha, what?? Is that some cheatcode-like option! That is amazing. Did not expect that super cool thing. :smiley:

But is this ok? I mean, is there an equivalent command which is rather “native” to Basic?

"Hello" + Chr(13) + "Libo"
1 Like

Thank you so much!

Also, after being curious and googling some more, I found that Chr(10) is yet another possibility for a line break. Just tested it. Well. Question solved with 3 possibilities, in a way. :slight_smile: