Private Sub Worksheet_Change(ByVal Target As Range)
On Error Resume Next
Dim cell As String
cell = Target.Address‘当前单元格名称,如$A$1
If Left(cell, 2) = "$A" Or Left(cell, 2) = "$Z" Then '仅对A和Z列应用本程序
With Target.EntireRow
If .Range("A1").Value > .Range("Z1").Value Then
.Ra...