Using different lines in an input- or msgbox

  • Thread starter Thread starter Syrus the Virus
  • Start date Start date
S

Syrus the Virus

I would like to use different lines (cq use enter) but I don't know how
I can make the macro press enter wiithin the string that defines th
text but then it accepts the inputbox.

HELP!!!
 
Hi,

Sub test()
Dim strMsg As String
strMsg = "Your text" & vbCrLf & "In two lines"
MsgBox strMsg
End Sub

Regards,
Jean-Yves
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top