有没有办法关闭或忽略已编入用户表单的消息框?
我尝试了Application.Displayalerts=False
但是,这似乎只适用于excel错误消息。
答案 0 :(得分:1)
如果消息框已编程显示,则会显示。但是,您可以这样做:
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