|
[广告] VBA代码宝 - VBA编程加强工具 · VBA代码随查随用 · 内置多项VBA编程加强工具 ★ 免费下载 ★ ★ 使用手册★
本帖最后由 海之男 于 2024-10-29 13:27 编辑
可以打印结果: 460105.
- <span style="background-color: rgb(249, 249, 249);">Sub id()</span>
- <span style="background-color: rgb(249, 249, 249);">Debug.Print Application.WorksheetFunction.VLookup(460105, Range("k:l"), 2, False)</span>
- <span style="background-color: rgb(249, 249, 249);">End Sub</span>
复制代码
可以打印结果: 海口
为何这样会报错
- <font style="background-color:initial">Sub id()</font>
- <font style="background-color:initial">Debug.Print Application.WorksheetFunction.VLookup(Left(Cells(2, 3), 6), Range("k:l"), 2, False)</font>
- <font style="background-color:initial">End Sub</font>
复制代码
|
|