显示两行消息弹出-vba 6 [英] display a 2 row message pop -up vba 6
本文介绍了显示两行消息弹出-vba 6的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
是否可以在vba 6的弹出窗口中显示2或3或4或n行消息?
is there a way to display a 2 or 3 or 4 or n line message on a pop-up window in vba 6 ?
目前,我的弹出窗口(调用MsgBox函数)显示如下消息:
For the moment my pop-up window ( calling the MsgBox function) displays the message like this :
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?
提前很多, 拉杜
推荐答案
只需在您的消息中添加换行符即可:
Just add a newline in your message:
MsgBox "Text 1" & vbNewLine & "text 2.
这篇关于显示两行消息弹出-vba 6的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文