【发布时间】:2015-07-10 03:16:44
【问题描述】:
我有一张大表,我需要删除其中的所有内容。当我尝试在没有 VBA 的情况下简单地清除它时,它会进入无响应模式。使用宏时,例如:
Sub ClearContents ()
Application.Calculation = XlManual
Application.ScreenUpdating = False
Sheets("Zeroes").Cells.ClearContents
Application.ScreenUpdating = True
End Sub
它也没有响应。最快的方法是什么?
【问题讨论】:
-
工作表是否包含条件格式?
-
不是条件格式,没有。
-
试试
Application.EnableEvents = False: Sheets("Zeroes").Cells.Delete: Application.EnableEvents = True