I want to check my column headings to see whether it contains certain pieces of text or match entries in an array BUT if neither of my checks are true, then it must perform the statement after ELSE (moving to next column)
Currently I get a "Else without IF" error
Currently I get a "Else without IF" error
Code:
If ActiveCell.Text = "#N/A" Then ActiveCell.EntireColumn.Delete Shift:=xlToLeft
ElseIf Application.Match(ActiveCell.Text, AnalyteArray, 0) > 0 Then FirstAnalyteColumn = ActiveCell.Column
Else
Cells(ActiveCell.Row, ActiveCell.Column + 1).Select
End If