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 -

reflection - How to access the object-members of an object declaration in kotlin -

php - Doctrine Query Builder Error on Join: [Syntax Error] line 0, col 87: Error: Expected Literal, got 'JOIN' -