【发布时间】:2017-09-08 11:33:01
【问题描述】:
Sub prelim()
MsgboX "Hello World"
End Sub
Sub Main()
Call prelim
End Sub
在上面的代码中Sub prelim 不能被编辑。当我运行Sub prelim 时我想要msgbox,但是当我运行Sub Main 时我不想弹出消息框。怎么做?
【问题讨论】:
-
Application.DisplayAlerts = False'你的代码在这里`Application.ScreenUpdating = True -
试试上面的说法
-
试过了。但它只适用于子外部。当我运行 prelim 时,我需要 msgbox 得到提示。但是当我运行 main 时,我不需要 msgbox。 ://
标签: vba excel subroutine msgbox