How about something like this?
VB:Dim LSearchRow As Integer Dim LCopyToRow As Integer Dim SearchString As String On Error Goto Err_Execute 'Grab your Search String SearchString = Range("TheCellonyourSheet").Value 'Start search in row 4 LSearchRow = 4 'Start copying data to row 2 in Sheet2 (row counter variable) LCopyToRow = 2 While Len(Range("A" & CStr(LSearchRow)).Value) > 0 'If value in column E = "Mail Box", copy entire row to Sheet2 If Range("A" & CStr(LSearchRow)).Value = SearchString Then 'Select row in Sheet1 to copy


Reply With Quote
Bookmarks