✔ 最佳答案
Private Sub Worksheet_SelectionChange(ByVal Target As Range)
If ActiveCell.Interior.ColorIndex <> 3 Then
ActiveCell.Interior.ColorIndex = 3
ElseIf ActiveCell.Interior.ColorIndex = 3 Then
ActiveCell.Interior.ColorIndex = 0
End If
End Sub
ColorIndex
http://www.funp.net/459961
2012-11-05 22:03:48 補充:
Private Sub Worksheet_SelectionChange(ByVal Target As Range)
With Target
If Target.Interior.ColorIndex <> 3 Then
Target.Interior.ColorIndex = 3
ElseIf Target.Interior.ColorIndex = 3 Then
Target.Interior.ColorIndex = 0
End If
End With
End Sub
2012-11-05 22:05:59 補充:
不知道是不是你想要的功能?