Thanks again for your help!
I am using the following code to copy data according to autofilter criteria - this works fine, until there is no data marked as "sold" - it then copies the whole sheet...what code would I use to exit sub if criteria is <> "Sold"?
Columns("b:q".Select
Selection.AUTOFILTER
Selection.AUTOFILTER Field:=16, Criteria1:="Sold"
Range(Cells(2, 4), Cells(lastRow,_
16)).Interior.ColorIndex = xlNone
Range(Cells(2, 4), Cells(lastRow, 16)).Copy
Thanks again for your help!
I am using the following code to copy data according to autofilter criteria - this works fine, until there is no data marked as "sold" - it then copies the whole sheet...what code would I use to exit sub if criteria is <> "Sold"?
Columns("b:q".Select
Selection.AUTOFILTER
Selection.AUTOFILTER Field:=16, Criteria1:="Sold"
Range(Cells(2, 4), Cells(lastRow,_
16)).Interior.ColorIndex = xlNone
Range(Cells(2, 4), Cells(lastRow, 16)).Copy
Thanks again for your help!