Sub 批量忽略错误绿色小三角单元()
Application.ScreenUpdating = False
Dim sht As Worksheet, rng As Range
For Each sht In Sheets
For Each rng In sht.UsedRange
rng.Errors.Item(xlEvaluateToError).Ignore = True '单元格计算为错误值。
rng.Errors.Item(xlTextDate).Ignore = True '单元格包含用 2 位数表示年份的文本日期。
rng.Errors.Item(xlNumberAsText).Ignore = True '单元格包含以文本形式存储的数字。
rng.Errors.Item(xlInconsistentFormula).Ignore = True '单元格包含一个区域中不一致的公式。
rng.Errors.Item(xlOmittedCells).Ignore = True '单元格包含一个忽略了区域中某个单元格的公式。
rng.Errors.Item(xlUnlockedFormulaCells).Ignore = True '取消锁定的单元格包含一个公式。
rng.Errors.Item(xlEmptyCellReferences).Ignore = True '单元格包含一个引用空单元格的公式。
Next
Next
Application.ScreenUpdating = True
End Sub