Excel VBA formula R1C1 Vlookup -


i using vlookup function in excel. right formula this:

    "=vlookup([engagement id],pivots!al:au,10,false)" 

when vba, changes

    range("ct2").formular1c1 = _     "=vlookup([engagement id],pivots!c[-60]:c[-51],10,false)" 

i dont want -60:-51 , want letters itself. once change formula have al: au instead of -60 :-51 doesnt work. knows do?

adrian

r1c1 formulas use indexed cell coordinates (numbers), if want use letters don't use r1c1 formula classic ones:

range("ct2").formula = "=vlookup([engagement id],pivots!al:au,10,false)"


Comments

Popular posts from this blog

Is there a better way to structure post methods in Class Based Views -

performance - Why is XCHG reg, reg a 3 micro-op instruction on modern Intel architectures? -

jquery - Responsive Navbar with Sub Navbar -