Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我编写了 vba 代码来永久删除工作表。当我运行它时,会出现以下消息:
“数据可能存在于选择删除的工作表中。要永久删除数据,请按 Delete。”
如何编写此代码以使其自动删除工作表而不会弹出消息?
ThisWorkbook.Sheets("SVT").Delete
您可以使用:
Application.DisplayAlerts = False ThisWorkbook.Sheets("SVT").Delete Application.DisplayAlerts = True