【发布时间】:2014-05-13 14:55:34
【问题描述】:
尝试在 Excel 2010 中快速编写一段 VBA 到
- 使用 Vlookup 查找值
- 返回第三列的值
- 将给定单元格设置为此值
我的困难在于公式。
Sub Metrics123()
Dim x As Integer
x = Application.WorksheetFunction.VLookup("Test", "A7:D9", 3, False)
Range("A1").Value = x
End Sub
当我运行这个时,我点击了error 1004: 'Unable to get the Vlookup Property of the WorksheetFunction
任何指针表示赞赏!
【问题讨论】: