Sorry, I missed in your thread title that it was a VBA question.Hi Peter, I am trying to do an if statement whether the data in Column A contains them or not as I will be adding code to determine what to do next
Sub test()
Dim c As Range
For Each c In Range("A2", Range("A" & Rows.Count).End(xlUp))
If InStr(1, c, vbTab) Then
MsgBox "The cell contains tab delimited:" & c.Address
'here your code
End If
Next
End Sub
Sub test2()
Dim c As Range
Set c = Range("A:A").Find(vbTab, , xlValues, xlPart)
If Not c Is Nothing Then
MsgBox "The cell contains tab delimited:" & c.Address
'here your code
End If
End Sub