My mistake try this
Option Explicit
Sub test()
Dim i As Integer, j As Integer
Dim a As Integer, b As Integer, c As Integer
For i = 1 To 30
For j = 1 To 4
Select Case True
Case InStr(1, LCase(Cells(i, j)), "john") > 0
a = a + 1
Sheet1.Cells(i, j).Copy
Sheet2.Cells(a, 1).PasteSpecial xlPasteValues
Case InStr(1, LCase(Cells(i, j)), "kelvin") > 0
b = b + 1
Sheet1.Cells(i, j).Copy
Sheet2.Cells(b, 2).PasteSpecial xlPasteValues
Case InStr(1, LCase(Cells(i, j)), "kenny") > 0
c = c + 1
Sheet1.Cells(i, j).Copy
Sheet2.Cells(c, 3).PasteSpecial xlPasteValues
End Select
Next
Next
End Sub
If this still does nothing, or doesn't give you the result you need, post a sample workbook.
Bookmarks