在 Excel VBA 工作簿的 Window 立即执行多行

Execute Multiple Lines in the Immediate Window of an Excel VBA workbook

我是否仅限于在 Excel VBA 立即 Window 中执行 1 个命令。有没有办法执行多条语句?

使用冒号 : 键将多个语句连接在一起。 (例如:MsgBox "msgBox1" : MsgBox "msgBox2" 将显示两个警告消息框。