返回列表 上一主題 發帖

excel聚光灯怎樣不影響原來格式上的顏色

Private Sub CheckBox1_Click()
If CheckBox1.Value = False Then
   CheckBox1.Caption = "關"
  'ActiveSheet.Cells.Interior.ColorIndex = xlNone
  Cells.FormatConditions.Delete
Else: CheckBox1.Caption = "開"
End If
End Sub

TOP

Sub Spotlight(ByVal Target As Excel.Range)
Cells.FormatConditions.Delete
With Union(Target.EntireColumn, Target.EntireRow)
     .FormatConditions.Add xlExpression, , "=true"
     .FormatConditions(1).Interior.ColorIndex = 20
End With
End Sub

TOP

回復 4# coke373


紅色那行刪除

TOP

        靜思自在 : 發脾氣是短暫的發瘋。
返回列表 上一主題