add new line in messagebox text - not using VbCrLf - how?

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Is it possible to add a new line to the text for a message box like html

"this is msg1 <br> this is msg2"

versus
"this is msg1" & VbCrLf & "this is msg2?

Or like C#
"this is msg1 \n this is msg2"

Thanks,
Rich
 
Is it possible to add a new line to the text for a message box like html

"this is msg1 <br> this is msg2"

You'll need to replace <br> with the carriage return and line feed
characters.

i.e. Replace(myString, "<br>", vbcrlf)
 
Rich said:
versus
"this is msg1" & VbCrLf & "this is msg2?

Or like C#
"this is msg1 \n this is msg2"

In both cases similar string literals will be emitted, except that 'vbCrLf'
corresponds to "\r\n" in C#.
 
Back
Top