업무 자동화/VBA VB.Net Code
엑셀 셀 선택시 열,행 색상으로 표시하기
ToolBOX01
2022. 12. 14. 09:24
Private Sub Worksheet_SelectionChange(ByVal Target As Range)
Application.ScreenUpdating = False
If Target.Cells.Count > 1 Then Exit Sub
Dim oColumnscount As Long
oColumnscount = Cells(15, Columns.Count).End(xlToLeft).Column
'//Clear the color of all cells
range("A16:Z & oColumnscount").Interior.ColorIndex = 0
With Target
'//Highlight row and column of the selected cell
.EntireRow.Interior.ColorIndex = 38
'// Highlight row of the selected cell
'//.EntireColumn.Interior.ColorIndex = 24
End With
End Sub
엑셀 셀 선택시 열,행 색상으로 표시하기 / 매크로 / vba
엑셀을 할때 자료가 늘어날 때 마다 눈이 너무 피로해 진다. 촘촘한 셀들을 들여다 보며 행과 열을 맞춰봐...
blog.naver.com