EXCEL单元格选中变色(可调次数和时间):

Private Sub Worksheet_SelectionChange(ByVal Target As Range)
    For i = 1 To 3
        S = Timer
        With Selection.FormatConditions
            .Add Type:=xlExpression, Formula1:="=TRUE"
            .Item(.Count).SetFirstPriority
            .Item(1).Interior.Color = 65535
            Do
            Loop Until Timer - S >= 0.1
            .Item(1).Delete
            Do
            Loop Until Timer - S >= 0.2
        End With
    Next
End Sub

  

 

相关文章:

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