Is there a command in Excel to copy all the rows that it meets a find criteria (similar to find All) and copy/paste them to another sheet.
I have it coded in a loop to find one by one then copy paste... My pseudo code is somthing like this:
(pseudocoded)
Do
sheet(1).select
range("A1").select
find string
Rows(ActiveCell.Row).Select 'Select Entire Row
Selection.Cut
Sheet(2).Select 'Select another sheet
Application.Goto Reference:="R65000C1" 'go to end
Selection.End(xlUp).Select 'go to last row with c
ActiveCell.Offset(1, 0).Select 'Move Down one row
ActiveSheet.Paste 'Paste it
Until not found
I am trying to simply the loop thing.
Please advice,
thank you.
Dré
I have it coded in a loop to find one by one then copy paste... My pseudo code is somthing like this:
(pseudocoded)
Do
sheet(1).select
range("A1").select
find string
Rows(ActiveCell.Row).Select 'Select Entire Row
Selection.Cut
Sheet(2).Select 'Select another sheet
Application.Goto Reference:="R65000C1" 'go to end
Selection.End(xlUp).Select 'go to last row with c
ActiveCell.Offset(1, 0).Select 'Move Down one row
ActiveSheet.Paste 'Paste it
Until not found
I am trying to simply the loop thing.
Please advice,
thank you.
Dré