关闭/忽略excel中的消息框

问题描述:

是否有任何方法关闭或忽略已编程到用户表单中的消息框?我试过Application.Displayalerts=False但是,这似乎只适用于excel错误消息。关闭/忽略excel中的消息框

+0

如何做这些'MsgBox's'出现 - 你能提供的代码,或更好的样品簿? – brettdj 2014-09-02 00:48:30

如果该消息框被编程为显示,它将显示。但是,你可以做这样的事情:

Dim displayMesssageBoxes = [insert 0 if you do not want messageboxes displayed;1 if you do] 
if displayMessageBoxes == 1 
    [insert code to display mesagebox here] 
else 
end