VBA中MsgBox的几个用法

来源:互联网 发布:php开源论坛 wap 编辑:程序博客网 时间:2024/05/03 07:11

1.简单的弹出一个消息

MsgBox ("Common Msg")

2.显示某个单元格的信息

MsgBox "Cell A1 is " & Range("A1").Value

3.加入换行

MsgBox "Line 1 Content" & vbNewLine & "Line 2 Content"