Hi all, ran into a couple of issues again...
I am trying to assign a formula to a Column B...
[vba]columnLength = objRecordSet.RecordCount
ActiveSheet.Range("B1:B$columnLength").Formula = "IF(ISERROR(VLOOKUP(A1,Sheet3!$A:$B,2,FALSE)),""0"", VLOOKUP(A1,Sheet3!$A:$B,2,FALSE))"[/vba]
I need to assign this formula to every cell in Column, and my last cell(row reference) should be equal to columnLength....
Also where in the formula there is A1 this should be incremented with every cell (down).. Excel does it automatically if I drag the formula down, but not sure how to do this programmatically using VBA...
Thanks a lot
Mike