Am a little new with VBA programming, and have made a short program to given a simpler interface to using the autofilter function in a worksheet. The program works fine in Excel 2007, however in Excel 2003 the program gives the runtime error 1004 with regard to range.autofilter. The code is as below
The error while debugging is relating to the array that I have defined.
Hope the info is sufficient.Please Login or Register to view this content.
The following line gives the error
ActiveSheet.Range("$A$1:$G$996").AutoFilter Field:=1, Criteria1:=ShipArray, Operator:=xlFilterValues
with regard to Criteria1
Thanks in advance
Bookmarks