S
sharon_hutchison
I have the following line which inserts a vlookup formula into a cell,
drops down to the next cell does the same in a loop....
ActiveCell.Formula = "=VLOOKUP(RC[-1],Delivery!B,2,false)"
However, all I get is a #NAME? error, but if I click on the cell to
edit it and hit return the formula magically works! How do I get the
formula to work without having to go into every cell once I've run my
macro?
Also, if I type the vlookup into another cell
=vlookup(A2,Delivery!B,2,false) and go between the cells the formula
is EXACTLY the same, yet one (the manually entered one) works and the
other (entered by macro) doesn't until I've entered it and hit
return......
I'm stumped.
Thanks
drops down to the next cell does the same in a loop....
ActiveCell.Formula = "=VLOOKUP(RC[-1],Delivery!B,2,false)"
However, all I get is a #NAME? error, but if I click on the cell to
edit it and hit return the formula magically works! How do I get the
formula to work without having to go into every cell once I've run my
macro?
Also, if I type the vlookup into another cell
=vlookup(A2,Delivery!B,2,false) and go between the cells the formula
is EXACTLY the same, yet one (the manually entered one) works and the
other (entered by macro) doesn't until I've entered it and hit
return......
I'm stumped.
Thanks