Sub Macro1()
Sheets("Quezac2").Range("A2").FormulaR1C1 = _
"=AND(LEFT(Quezac1!RC[2],3)=""VEN"",AND(RIGHT(Quezac1!RC[2],3)*1>=6,RIGHT(Quezac1!RC[2],3)*1<=17))"
Sheets("Quezac2").Range("A1:A2").Select
Sheets("Quezac1").Cells(1).CurrentRegion.AdvancedFilter _
Action:=xlFilterCopy, _
CriteriaRange:=Range("Quezac2!Criteria"), _
CopyToRange:=Range("Quezac2!C1"), Unique:=False
End Sub