Hi
I'm new to this forum. I have a macro that works perfectly on excel for Mac 2004 but has errors on 2011.
This bit of code fails and the debugger highlights the line I've marked with an @ symbol :-
The error message prior to clicking the debug button is :-
Run time Error '1004'
A Range is required.Select at least one cell within arange and try again.
Any help would be much appreciated
Sub phoneordernoVAT()
'
' phoneordernoVAT Macro
' copies no VAT rows from sheet: phoneorderall and pastes into sheet: phoneordernoVAT
'
'
Sheets("phoneorderall").Select
Selection.AutoFilter @
Selection.AutoFilter Field:=6
Selection.AutoFilter Field:=6, Criteria1:="=0", Operator:=xlAnd
Cells.Select
Selection.Copy
Sheets.Add
Sheets("Sheet9").Name = "phoneordernoVAT"
Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _
:=False, Transpose:=False
End Sub
Bookmarks