Hi bigband,
So what have you tried so far? Did it work?
I would use a sub of the format:
This assumes that your data starts on row 1, and that your sheet is called sheet1.
Hopefully will get you started!
Kind regards,
Paul
Edit: Note that if your cell value in column AB starts with the word first, then Instr returns 0, which means that the macro will not clear the data. For example:
4373first would return a value greater than zero when you test Instr(), but
first43425 would return 0.
so in the top case the cell contents would get cleared, and in the bottom case they wouldnt. You could make it clear the cell contents in any case by having something like:
If InStr(testcell, "first") > 0 or testcell = "first" Then
Happy coding!
Bookmarks