使用宏在Excel 2007中进行VlookUp [英] VlookUp in Excel 2007 using Macros

查看:544
本文介绍了使用宏在Excel 2007中进行VlookUp的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试过跟随它给我sytax错误,我无法纠正:



I tried following however its giving me sytax error which I am unable to rectify:

VB:
 
For i = 1 To 11 
    Range("D" & i).Value = WorksheetFunction.VLookup(A2, Sheet2!A$1:G$14, 7, False) 
Next i 





它给我编译错误消息如下所示

编译错误:预期列表分隔符或)



和Vlookup功能1澳元中的数字1突出显示。



希望我理解你的回复,或者我可能需要在我的代码中更改一些内容。



its giving me compile error msg as follwing
Compile Error: Expected list seperator or )

and digit one in A$1 of Vlookup function gets highlighted.

Hope I understood your reply or probably I need to change something in my code.

推荐答案

1:G


14 ,7,错误)
接下来我
14, 7, False) Next i





它给我编译错误信息如下:

编译错误:预期列表分隔符或)



和A中的数字1



its giving me compile error msg as follwing
Compile Error: Expected list seperator or )

and digit one in A


Vlookup函数中的1个突出显示。



希望我理解您的回复或者我可能需要在代码中更改内容。
1 of Vlookup function gets highlighted.

Hope I understood your reply or probably I need to change something in my code.


这篇关于使用宏在Excel 2007中进行VlookUp的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆