How to using AutoFilter function for multiple Itmes via activeX?
15 次查看(过去 30 天)
显示 更早的评论
Hello,
I am trying to "translate" the following VBA code into Matlab (using activeX)
Selection.AutoFilter 1, Array("2", "3", "5"), xlFilterValues
So I coded in Matlab:
invoke(Excel.Range('B:B'), 'AutoFilter', Array("2", "3", "5"),7);
this unfortunately does not work at all (no filter item is selected). If I code the following:
invoke(Excel.Range('B:B'), 'AutoFilter', '1',7);
it works fine, but this is only a filter for one Item, and I want to create a filter for multiple Items.
Does anyone know how to do that?
Thank you
Jenny
0 个评论
采纳的回答
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 ActiveX 的更多信息
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!