有没有办法在 vba 6 的弹出窗口上显示 2 或 3 或 4 或 n 行消息?
目前我的弹出窗口(调用 MsgBox 函数)显示如下消息:
You did something wrong. Please enter valid input.
我希望它显示这样的消息
You did something wrong.
Please enter valid input.
你能提供一个代码示例吗?
提前很多谢谢,拉杜
只需在您的消息中添加一个换行符:
MsgBox "Text 1" & vbNewLine & "text 2.
相对简单的请求
iResult = MsgBox("This information is on the first line. " & vbCrLf & "This information is on the 2nd line. " &vbCrLf & _
"Do you wish to continue?", vbYesNo + vbInformation, "Message Box")