luoye00
Private Sub Worksheet_Change(ByVal Target As Range)
If Target.Address = "$B$1" And [A1].Value > [B1].Value Then
    Target.Interior.ColorIndex = 3
Else
    Target.Interior.ColorIndex = xlNone
End If
End Sub

转自EXCELHOME论坛,很实用的事件触发器,在此记下备忘。

分类:

技术点:

相关文章:

  • 2021-10-28
  • 2021-09-17
  • 2021-09-17
  • 2021-03-29
  • 2021-05-20
  • 2021-12-04
  • 2021-09-17
  • 2021-12-06
猜你喜欢
  • 2021-11-23
  • 2021-09-17
  • 2021-09-17
  • 2021-09-17
  • 2021-07-08
  • 2021-09-17
相关资源
相似解决方案