ramakriishna
New Member
How to make vlookup dynamic by using lastrow and lastcol
vba code
sub vlookup
lastrow=12
lastcol=11
activecell.formular1c1="="vlookup(RC[-1],sheet2!r1c1:R"&lastrow&"C"&lastcol,column(c[2]),false""
i want write vlookup like above while assing &lastrow and &lastcol
it is giving error
how to assign &lastrow and &lastcol to above formula
any help
Thanks in advanced
vba code
sub vlookup
lastrow=12
lastcol=11
activecell.formular1c1="="vlookup(RC[-1],sheet2!r1c1:R"&lastrow&"C"&lastcol,column(c[2]),false""
i want write vlookup like above while assing &lastrow and &lastcol
it is giving error
how to assign &lastrow and &lastcol to above formula
any help
Thanks in advanced