I recorded a macro and used the generated code, changing it to save the results so I can discover the row where found. But the error message does not suggest what object is needed or where it is needed. What do I need to change?
VBA Code:
Sub pull_titles_back_to_their_column()
Dim col_num As Integer
Dim test_col As Variant
Dim found_row As Long
Dim found_cell As Variant ' Tried Range, same result
For col_num = COL_LAST_NAME To COL_SUFFIX
test_col = Columns(COL_LAST_NAME)
found_cell = test_col.Find( _ ‘ These 9 lines are highlighted
What:="mr", _
After:=ActiveCell, _
LookIn:=xlFormulas, _
LookAt:=xlWhole, _
SearchOrder:=xlByColumns, _
SearchDirection:=xlNext, _
MatchCase:=False, _
SearchFormat:=False).Activate
found_row = found_cell.Rows
Next col_num
End Sub