Private Sub Worksheet_Change(ByVal Target As Range)
    Dim Rng As Range
    Set Rng = Intersect(Target, [b2:c9])
    If Not Rng Is Nothing Then
        Rng.Interior.ColorIndex = 6
    End If
End Sub

 

posted on 2023-10-17 16:41  sonycat  阅读(109)  评论(0编辑  收藏  举报