[VBA] 찾기 - 헤더셀 찾기

by jopro posted Oct 30, 2025
?

단축키

Prev이전 문서

Next다음 문서

ESC닫기

크게 작게 위로 아래로 댓글로 가기 인쇄

찾기 - 헤더셀 찾기

 

헤더 찾기.png

 

''특정 헤더셀 위치 파악
Sub find_header_cell()

 

Dim rsh As Worksheet
Set rsh = Sheets("report")
Dim h_cell As Range: Set h_cell = rsh.Rows(1).Find("카드", , , xlWhole)

Debug.Print h_cell.Address

 

End Sub

 

위와 같이 하면 $E$1 위치값이 나옴