I have used Excel's new dynamic array functions like Sort in VBA but have been unable to use the "Filter" function with Application.WorksheetFunction in VBA.
It gives a "Type Mismatch" or a similar error.
I am trying to extract information from a Table (ListObject) through a VBA sub.
A simple example could be a Table having Stock "Symbol", "Date" and "Close price" as 3 columns and a filter could be applied on the first column such as Table[Symbol] = "AAPL".
It will replace the bit lengthy AutoFilter in the VBA sub and could extract the information directly to an Array with the command like:
Array = Application.Worksheetfunction.Filter (Array, [include] .....)
The macro recorder results in something like:
ActiveCell.Formula2R1C1 = "=FILTER(NewPages,NewPages[Symbol]=""AAPL"","""")"
where NewPages is the name of the table.
I am unable to replicate it in VBA with results in an array.

