This currently my code, based off of this answer: https://stackoverflow.com/a/11633207.
My code currently pastes the copied code on the bottom of Sheet2 starting at column A. How can I make it so that it copies the row starting at column C?
Dim ws1 As Worksheet, ws2 As Worksheet
Dim copyFrom As Range
Dim lRow As Long
Dim lastRow As Long
Dim strSearch As String
Dim i As Integer
Set ws1 = Worksheets("Sheet1")
With ws1
.AutoFilterMode = False
lRow = .Range("J" & .Rows.Count).End(xlUp).Row
With .Range("J1:J" & lRow)
strSearch = "John"
.AutoFilter Field:=1, Criteria1:="=*" & strSearch & "*"
Set copyFrom = .Offset(1, 0).SpecialCells(xlCellTypeVisible).EntireRow
End With
Set ws2 = Worksheets("Sheet2")
With ws2
lastRow = ws2.Cells.Find("*", SearchOrder:=xlByRows, LookIn:=xlValues, SearchDirection:=xlPrevious).Row
copyFrom.Copy .Rows(lastRow + 1)
End With
.AutoFilterMode = False
End With