【发布时间】:2021-04-20 06:11:06
【问题描述】:
我试图在过滤范围内选择一列,但它一直选择第一个单元格。我已经把表格过滤掉了,只需要选择实际的列(E列),减去标题。
这是我目前拥有的:
'After sorting, we will end up with several data rows for
'which we will need to sort from. Now that we have a filtered table,
'we would then need to created a variable for our new filtered range
Dim DeliverableTablefltrdRng As Range
Set DeliverableTablefltrdRng = rRange.SpecialCells(xlCellTypeVisible)
'Now that we have all these sorted, we will then need to
'verify whether the target finish date is within the start and end date
Dim WorkOrderRange As Range
Set WorkOrderRange = DeliverableTablefltrdRng.SpecialCells(xlCellTypeVisible).Range("E2:E" & Cells(Rows.Count, 1).End(xlUp).Row).Select
【问题讨论】:
-
您是否在寻找类似的东西:ActiveSheet.Range("$E$2:$E$" & ActiveSheet.Cells(1048576, 9).End(xlUp).Row).Autofilter 字段: =1, Criteria1:="运行"