ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   msgbox (https://www.excelbanter.com/excel-discussion-misc-queries/160188-msgbox.html)

peyman

msgbox
 
hi,
how can I have two lines in MsgBox results in VB?
thanks in advance

Mike

msgbox
 
Sub msgboxtwolines()
MsgBox "First line" _
& vbCrLf & "Second line"
End Sub

"peyman" wrote:

hi,
how can I have two lines in MsgBox results in VB?
thanks in advance


peyman

msgbox
 
thank you Mike.it's perfect!

"Mike" wrote:

Sub msgboxtwolines()
MsgBox "First line" _
& vbCrLf & "Second line"
End Sub

"peyman" wrote:

hi,
how can I have two lines in MsgBox results in VB?
thanks in advance



All times are GMT +1. The time now is 04:42 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com