My current very simple attemp for your reference.
Sub Distributer()
Set r = ActiveWorkbook.Sheets("temp").Range(Range("I65536").End(xlUp), Range("I2"))
'Marcos Chinese Kitchen
For Each C In r
If C.Value = "2000" Then C.EntireRow.Copy Destination:=Worksheets("Marcos_Data").Range("A65536").End(xlUp).Offset(1, 0)
Next
For Each C In r
If C.Value = "2030" Then C.EntireRow.Copy Destination:=Worksheets("Marcos_Data").Range("A65536").End(xlUp).Offset(1, 0)
Next
For Each C In r
If C.Value = "2090" Then C.EntireRow.Copy Destination:=Worksheets("Marcos_Data").Range("A65536").End(xlUp).Offset(1, 0)
Next
end sub
Thanks,
A2k
Bookmarks