作者:mou377 | 来源:互联网 | 2023-05-19 18:28
SoIneedtoextractinformationfromasheetwithonlycertainvalues.Fromabout550rowsdownto
So I need to extract information from a sheet with only certain values. From about 550 rows down to 50 which are spread across the entire sheet.
所以我需要从只有特定值的工作表中提取信息。从大约550行到50行分散在整个纸张上。
So I used autofilter for that. Now I only see the rows which match to my criteria but how can I get the values of a specific range from?
所以我使用了autofilter。现在我只看到符合我标准的行,但是如何从中获取特定范围的值?
This far I came:
到目前为止我来了:
I know that I have to use
我知道我必须使用
RangeINamed.SpecialCells(xlCellTypeVisible)
to work with only the visible information. It worked for getting the starting and last row
仅处理可见信息。它有助于获得起点和最后一行
startRow = bulkbatchRange.SpecialCells(xlCellTypeVisible).row
endRow = startRow + bulkbatchRange.SpecialCells(xlCellTypeVisible).rows.Count
But now I need to get the value of a specific column, I want to use a For loop so I can loop through all visible rows.
但是现在我需要获取特定列的值,我想使用For循环,这样我就可以遍历所有可见行。
So I tried to do
所以我试着这样做
RangeINamed.SpecialCells(xlCellTypeVisible).range("U" & rowNumber).value
That didn't work it gave me nothing. Now I'm rather clueless so does someone maybe know how I get the value of that row in column U in RangeINamed?
这没用,它什么都没给我。现在我很无能,所以有人可能知道如何在RangeINamed中的U列中获得该行的值吗?
Thank you
谢谢
2 个解决方案