is there a way to display a 2 or 3 or 4 or n line message on a pop-up window in vba 6 ?
有没有办法在vba 6的弹出窗口中显示2或3或4或n行消息?
For the moment my pop-up window ( calling the MsgBox function) displays the message like this :
目前我的弹出窗口(调用MsgBox函数)显示如下消息:
You did something wrong. Please enter valid input.
and I want it to display the message like this
我希望它显示这样的消息
You did something wrong.
Please enter valid input.
can you please provide a code sample?
你能提供代码样本吗?
many thx in advance, radu
提前很多,radu
2 个解决方案
#1
5
Just add a newline in your message:
只需在邮件中添加换行符:
MsgBox "Text 1" & vbNewLine & "text 2.
#2
3
Relatively easy request
相对容易的要求
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")
#1
5
Just add a newline in your message:
只需在邮件中添加换行符:
MsgBox "Text 1" & vbNewLine & "text 2.
#2
3
Relatively easy request
相对容易的要求
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")