I want to look up the column number that contains a specific header. I've wrote a couple of simple lines. However, even this is giving me a run-time error of 1004, application-defined or object defined error. What am I doing or not doing that is causing this issue? Please help. Thank.
Private Sub worksheet_Change(ByVal target As Range)
Dim col As Long
col = Range("A1:A4").Find("abc", , LookIn:=xlValues, LookAt:=xlWhole, SearchOrder:=xlByColumns, SearchDirection:=xlNext, MatchCase:=False, SearchFormat:=False).Column
Cells(1, 6).Value = col
End Sub