macro_user
Board Regular
- Joined
- Mar 9, 2009
- Messages
- 101
hi...
i need to use vlookup through my code in VBA...
VLOOKUP(A4,'sheet1'!F:G,2,FALSE)
A4 is the data which im doing the Vlookup... its present in sheet1 at F and i need the column value G... so the column index is 2 and i keep match exact case as FALSE...
so wat i need to know is, i need to iterate through each value in column A and get the value at B...
can i write something like this...?
for i = 1 to lastrow_in_col_A
cells(i+3,"B").value = Vlookup('A' & i + 3 ,'sheet1'!F:G,2,FALSE)
next i
is it possible for me to loop through every value in column A? tat is wat i need to know...
appreciate ur help...
i need to use vlookup through my code in VBA...
VLOOKUP(A4,'sheet1'!F:G,2,FALSE)
A4 is the data which im doing the Vlookup... its present in sheet1 at F and i need the column value G... so the column index is 2 and i keep match exact case as FALSE...
so wat i need to know is, i need to iterate through each value in column A and get the value at B...
can i write something like this...?
for i = 1 to lastrow_in_col_A
cells(i+3,"B").value = Vlookup('A' & i + 3 ,'sheet1'!F:G,2,FALSE)
next i
is it possible for me to loop through every value in column A? tat is wat i need to know...
appreciate ur help...
Last edited: