|
|
[广告] VBA代码宝 - VBA编程加强工具 · VBA代码随查随用 · 内置多项VBA编程加强工具 ★ 免费下载 ★ ★ 使用手册★
Private Sub Worksheet_SelectionChange(ByVal Target As Range)
Dim hs, zdh As Long
Dim Rng As Range
On Error Resume Next
hs = ActiveCell.Row
If hs > 9 And Cells(6, 11).Value = "聚光" Then
Range(Cells(10, 1), Cells(1048576, 32)).Interior.ColorIndex = xlNone
Set Rng = Range(Cells(hs, 1), Cells(hs, 32))
Rng.Interior.ColorIndex = 34
End If
If Cells(6, 11).Value = "取消" Then
Range(Cells(10, 1), Cells(1048576, 32)).Interior.ColorIndex = xlNone
End If
End Sub |
|