I'm editing a document with 2500 entries and need to apply an AutoFilter, and this is my first try at editing the macro code, please have patience.
I used record to create the macro, and when I went to edit parts of it I got "Compile error: Expected: expression" outside the portion of the code I edited. the '...' is many more entries.
ActiveSheet.Range("$A$1:$C$2500").AutoFilter Field := 2, Criteria1 := Array( _
"#N/A","3K Technologies, LLC","ABN","Accenture","AIMCo",...,"ITAT Partners" _
,"IT-Beratung Gunnar Hofmann","John Hancock","John Hancock Financial Network", _
End Sub
Not all the entries are shown and all of the code above except "End Sub" is in red.
It seems that since I recorded the macro, as opposed to writing it, all the name values are being stored and causing a problem. How do I apply an auto filter to a large selection of cells in VBA? Are the existing company names causing an overflow?
Thank you in advance!
:=?_at the end of the 3rd line makes vba think that theEnd Subis part of theArray(