Option Explicit
Private Sub Worksheet_Selecti(ByVal Target As Range)
kkk Target
End Sub
Sub kkk(rT As Range)
Dim rC As Range
Me.Cells.FormatConditions.Delete
For Each rC In rT
With Cells(rC.Row, 1).Resize(, 7)
.FormatConditions.Add Type:=xlExpression, Formula1:="=TRUE"
.FormatConditions(1).Interior.ColorIndex = 37
End With
With Cells(rC.Row, 8).Resize(, 7)
.FormatConditions.Add Type:=xlExpression, Formula1:="=TRUE"
.FormatConditions(1).Interior.ColorIndex = 38
End With
With Cells(rC.Row, 15).Resize(, 6)
.FormatConditions.Add Type:=xlExpression, Formula1:="=TRUE"
.FormatConditions(1).Interior.ColorIndex = 37
End With
With Cells(rC.Row, 21).Resize(, 6)
.FormatConditions.Add Type:=xlExpression, Formula1:="=TRUE"
.FormatConditions(1).Interior.ColorIndex = 38
End With
With Cells(rC.Row, 27).Resize(, 4)
.FormatConditions.Add Type:=xlExpression, Formula1:="=TRUE"
.FormatConditions(1).Interior.ColorIndex = 37
End With
With Cells(rC.Row, 31).Resize(, 6)
.FormatConditions.Add Type:=xlExpression, Formula1:="=TRUE"
.FormatConditions(1).Interior.ColorIndex = 38
End With
Next
End Sub
A열 전체선택시 응답없음...
- dc official App
해당 댓글은 삭제되었습니다.
cpu ㅈ됨 ㅠㅠ - dc App
한번써봐 엑셀이 cpu 50퍼 차지하는거 본다 - dc App
일단 코드 안읽었는데 a열전체면 1048576개 셀 선택한거아님? - dc Cpp
2003이라서 6만따리임 - dc App
흠 - dc Cpp
회계팀 직원이라서 cpu i3 7세대로 컴터는 구리지만 엑셀이 랙걸릴 수준은 아닌데.. 컴터를 전문적으로 배운게 아니라사 왜 이란지 모르겠슴 - dc App
나도 vba 몰라서 모르겠음ㅋㅋ - dc Cpp