VBA调用Vlookup的错误反馈

来源:百度知道 编辑:UC知道 时间:2024/05/29 10:01:23
在VBA中调用Vlookup, 提示信息是
"无法获得者Vlookup在worksheetfunction 中的属性."

Sheets(1).Cells(Gg + 1, 14) = Application.WorksheetFunction.VLookup(Sheets(1).Cells(Gg + 1, 3), Sheets(3).Range("a:e"), 5, False)
究竟是哪里出的问题?

试试这样写看行不?
dim str as string
Str= "=VLookup(Sheets(1).Cells(" & Gg + 1 & ", 3), Sheets(3).Range(" & "a:e" & "), 5, False)"
Sheets(1).Cells(Gg + 1, 14) = Str

这个对非专业IT是非常难的,再说这仅仅用文字表达不出来