excel - VBA EXCEL VLOOKUP .SpecialCells(xlCellTypeVisible) 参数
问题描述
我将自动过滤器应用于 excel 文件中的列。在我想使用 vlookup 应用程序并将其仅用于可见单元格之后。我尝试使用 .SpecialCells(xlCellTypeVisible) 参数,但无法在我的代码中实现它。
With twb.Sheets("main")
For rw = 6 To .Cells(Rows.Count, 1).End(xlUp)
.Cells(rw, 14) = Application.VLOOKUP(.Cells(rw, 2).Value2, x, 25, False)
Next rw
End With
'ActiveSheet.ShowAllData
Application.DisplayAlerts = False
Application.ScreenUpdating = True
解决方案
推荐阅读
- javascript - 使用范围滑块和 JavaScript 更改 DiV 元素的宽度
- javascript - 只有五分之一的 div 转换正确
- tableau-api - 如何根据来自辅助混合数据源的条件过滤视图?
- php - 在 Laravel 请求中保留新行
- r - 如何在 R 中与另一列进行按列除法?
- python - 在 Windows 上为 Python 3.7 安装 pyodbc
- .htaccess - 如何防止机器人和蜘蛛消耗我的服务器资源?
- powerbi - 如何在 DAX Power BI 中按月细分日期范围?
- windows - 如何在不使用 Win32 API 激活窗口的情况下模拟按键组合
- c# - 声明双精度时无法分配商的值