excel - 如何将单元格的地址提供给 excel vba 中的 vlookup 函数?
问题描述
sub function1()
Do While cells(i,4)<>"" 'Loop till value exists in column
if cells(i,2)>0 Then ' If we have a positive value
cells(i,5).formula="=vlookup(cells(i,3).address(0,0),table,2,true)' Adding context
end if ' Lookup the required column value
i=i+1
Loop 'Try to give address of a cell into vlookup
解决方案
推荐阅读
- python - Laravel 应用程序使用 Symfony 在 LEMP 堆栈上执行 Python 脚本 - 权限被拒绝
- r - 强制 Plotly 相关热图色阶在零处为白色 - R
- python - 在df中按游戏跟踪团队记录
- r - 如何按月和年排序?
- java - 错误 FLAG_ACTIVITY_NEW_TASK 标志
- html - 引导表单验证不返回错误
- javascript - 如何记录具有多个别名的方法?
- regex - 以下文本的正则表达式
- javascript - 如何从存储在 json 对象中的数组中删除元素?| 角js | 范围
- php - 当“all_participant”为“0”时,数据库的结构是否正确以处理场景?