excel VBA - return Criteria1 Array from an Autofilter
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I have a table that I need to return all of the toggled values. When i record a macro after selecting which ones i want it looks like this ActiveSheet.Range("$A$1:$P$1000").AutoFilter Field:=6, Criteria1:=Array("A" _ , "B", "C", "D", "E", "G"), Operator:=xlFilterValues the problem i have is that the a,b,c, etc values that will be filtered by the user will always be changing so I can't hardcode any criteria that way. is there a way i can return an array of what is toggled on in a fashion similar to how this looks? msgbox ActiveSheet.Range("$A