티스토리 뷰

Visual Basic 코드(컬러 색상은 비슷한 번호가 없어서 20으로 설정해 보았습니다)

Sub Worksheet_SelectionChange(ByVal Target As Excel.Range)

'Update 20200430

Static xRow

Static xColumn

If xColumn <> "" Then

    With Columns(xColumn).Interior

        .ColorIndex = xlNone

    End With

    With Rows(xRow).Interior

        .ColorIndex = xlNone

    End With

End If

pRow = Selection.Row

pColumn = Selection.Column

xRow = pRow

xColumn = pColumn

With Columns(pColumn).Interior

    .ColorIndex = 20

    .Pattern = xlSolid

End With

With Rows(pRow).Interior

    .ColorIndex = 20

    .Pattern = xlSolid

End With

 

End Sub

 

'컴퓨터 팁' 카테고리의 다른 글

Ventoy 1.0.56 10/22  (0) 2021.10.23
Ventoy 1.0.54 (10/12)  (0) 2021.10.13
KB5005565 오류를 수정하는 방법? 자세한 내용은 여기!  (0) 2021.09.16
Ventoy 1.0.52 업데이트  (0) 2021.09.14
KakaoTalk V3.3.3.2911 Portable  (0) 2021.09.10
공지사항
최근에 올라온 글
최근에 달린 댓글
Total
Today
Yesterday
«   2025/02   »
1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28
글 보관함