我的VBA代码的以下部分在Excel 2010中可以正常使用,但是即使没有发送错误消息也可以关闭Excel 2016。请指教
Range("Z2:Z" & LastRow).Select
Selection.FormatConditions.Add Type:=xlCellValue, Operator:=xlEqual, _
Formula1:="=""NEW EMPLOYEE"""
Selection.FormatConditions(Selection.FormatConditions.Count).SetFirstPriority
With Selection.FormatConditions(1).Interior
.PatternColorIndex = xlAutomatic
.Color = 13408767
.TintAndShade = 0
End With