我正在尝试制作一个以标准方式记录信息点的电子表格。
因此设计如下: A2是“痛苦”
我正在尝试使用此代码,但它似乎无法正常工作。
Private Sub Worksheet_SelectionChange(ByVal Target As Excel.Range)
Application.EnableEvents = False
With Target
.Font.Name = "Calibri"
.Font.Size = 11
If .Address = Range("A2").Address Then
Select Case .Font.ColorIndex
Case 16
.Font.ColorIndex = 1
Case 1
.Font.ColorIndex = 56
.Font.Strikethrough = True
Case 56
.Font.ColorIndex = 16
.Font.Strikethrough = False
Case Else
.Font.ColorIndex = 16
End Select
End If
End With
Range("A3").Select
Application.EnableEvents = True
End Sub
请帮我弄清楚如何实现这个目标。
谢谢!