在excel中closures/忽略消息框

是否有任何方法closures或忽略已经编入用户表单的消息框?

我已经尝试Application.Displayalerts=False但是,这似乎只适用于Excel错误消息。

如果消息框被编程为显示,则会显示。 不过,你可以这样做:

 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