blood_Milk_sky
New Member
- Joined
- Nov 16, 2016
- Messages
- 10
Hey,
I was just wondering if anyone could help me with the below. I am trying to only Copy and Paste the rows that exceed "0", I have tried running this code but every time I do I get a run time error. could anyone help me please? an any improvements or suggestions would be greatly appreciated
many thanks
BMS
I was just wondering if anyone could help me with the below. I am trying to only Copy and Paste the rows that exceed "0", I have tried running this code but every time I do I get a run time error. could anyone help me please? an any improvements or suggestions would be greatly appreciated
many thanks
BMS
Code:
Sub ADDTOORDER()
Sheets("Menu").Select
Range("B7:D68").AutoFilter Field:=3, Criteria1:=">0", Operator:=xlAnd
Range("B7:D68").Copy
Sheets("LensOrder").Range("A" & Rows.Count).End(xlUp).Offset(1, 0).PasteSpecial (xlPasteValues)
Sheets("Menu").Range("C3").Select
Selection.ClearContents
Range("QTYS").Select
Selection.ClearContents
Range("C3").Select
End Sub