-1
我需要筛选已经过滤的范围。我使用下面的代码,但我认为自动过滤器是不必要的。但是,如果您删除自动筛选器,我仍然会得到一个“运行时间”为438'的 :对象不支持此属性或方法“错误。对筛选范围进行排序
这里是我的代码:
Range(cells(1,1),cells(9,5).select
selection.autofilter
activesheet.selection.autofilter.sort.sortfields.clear
activesheet.selection.autofilter.sort.sortfields. _
add key:=range("a8"), sorton:=xlsortonvalues, order:=xldescending, _
dataoption:=xlsortnormal
with activesheet.autofilter.sort
.header=xlYes
.matchcase=false
.orienation=xltoptobottom
.sortmethod=xlPinYin
.apply
end with
目前尚不清楚你试图达到什么目标。再加上这段代码甚至不会编译。请描述您的输入和预期结果 - 并发布您的实际代码。 –