I'm using the Application.match
function to look for the column number of the column heading I'm looking for. I want a customized pop up MsgBox if none of the headings are a match.
Before it gets to the IfError statement, Excel stops my program and shows a MsgBox that says there was no match
col_num = Application.WorksheetFunction.Match("wanted name", theDataWS.Rows(1), 0)
If IsError(col_num) Then
MsgBox "Please rename your column name to 'wanted name'"
End If