how can i make a multi line in msgbox having a vbmsgboxstyle "vbokcancel"?
Printable View
how can i make a multi line in msgbox having a vbmsgboxstyle "vbokcancel"?
vb Code:
Option Explicit Private Sub Form_Load() Dim msgRet As VbMsgBoxResult msgRet = MsgBox("This message" & vbCrLf & "runs on" & _ vbCrLf & "several lines", vbOKCancel) If msgRet = vbOK Then 'User clicked OK. ElseIf msgRet = vbCancel Then 'User clicked cancel. End If End Sub
tnx alot sir
by the way, what does vbCrLf stands for?
CarriageReturn LineFeed. You can use vbNewLine also, they are the same.Quote:
Originally Posted by Aisaki
Not quite. I believe that vbCrLf is a "hard coded" Carriage Return and Line Feed while vbNewLine is platform-specific and will contain whatever codes are appropriate to generate a new line on the specific platform.Quote:
Originally Posted by DigiRev