Hi all,
Hope all is well.
Hoping someone can help / advise / improve my approach to an issue that does not seem to be working!
Im trying to run (or loop if someone can advise) through a column of cells, and if cell contains certain text (e.g. ALPHA, BRAVO, CHARLIE) and delete the row if found.
My macro as I run it:
Sub DATA_TEXT ()
'Number of cells to loop through (I am unsure how the .xlend works!)
For i = 1 to 2500
'If function defining the criteria.
If cells (1, i) = "ALPHA" OR "BRAVO" OR "CHARLIE" Then
'Delete the entire row if match found.
Cells(1,i).Entirerow.Delete
Else
End if
Next i
End sub
Any suggestions, both in this specific case or how to better approach something like this would be greatly received! Eager to learn :D
Many thanks,
Coeus.
Bookmarks