I have 2 sheets, sheet1 and sheet2. From sheet1 data i have to copy data and paste in sheet2, then again from sheet1 i have to copy another different set of data and paste in sheet2 last line, where i pasted data 1st time
Sub Copy_chains_to_other_sheet()
ActiveSheet.Range("$A$1").AutoFilter Field:=8, Criteria1:="<>1", _
Operator:=xlAnd
ActiveSheet.Range("$A$1:$I$681").AutoFilter Field:=1, Criteria1:="=*antaris*" _
, Operator:=xlAnd
Range("A1").Select
Range(Selection, Selection.End(xlDown)).Select
Range(Selection, Selection.End(xlToRight)).Select
Selection.Copy
ActiveSheet.Next.Select
ActiveSheet.Paste
ActiveSheet.Range("$A$1").AutoFilter Field:=1
End Sub
This is the macro i wrote, but i don't know how to proceed. Because one time i have 5 rows of data that time i need to copy data from sheet1 and paste in sheet2 and with next set of data i need to paste it in 6th row, but another time i have 8 row of data that time i need to paste the next set of data from 9the row onwards, so how to deal with this.
Thanks in advance for answering.
Regards, Vignesh