显示一个2行的消息popupvba 6
有没有办法在vba 6的popup窗口中显示2或3或4或n行消息?
目前我的popup窗口(调用MsgBox函数)显示消息像这样:
You did something wrong. Please enter valid input.
我希望它显示这样的消息
You did something wrong. Please enter valid input.
你能提供一个代码示例吗?
许多thx提前,radu
只要在你的讯息中join一个换行符:
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")
- Excel VBA:find匹配的组合键,然后比较其余的值
- 使用Excel VBA定义新单元格时出错
- 如何从C#保存到Excel?
- 在VBA,我如何创build一个代码,它匹配2张工作日的date,并将数据粘贴到匹配的date作为值? 不能使用vlookup这个
- MATLAB 2012 – 从MATLAB创build单个列表文本文件
- Excel VBA Msxml2.XMLHTTP.6.0与Msxml2.ServerXMLHTTP.6.0
- 有没有一种快速的方法来获取使用ADO.Net的Excel工作表中的行数?
- Excel中多列filter的平均值
- 使用对话框进行图纸select并将其作为值复制到新的工作簿中