desert_dweller5
New Member
- Joined
- Apr 8, 2011
- Messages
- 30
Sub Rangeformula()
range("E3").Formula = "=IF(ISERROR(VLOOKUP(D3,$B$3:$C$19037,2,FALSE)),,VLOOKUP(D3,$B$3:$C$19037,2,FALSE)"
Range(e3:e20000).filldown
End Sub
This is my code. it wont run.
Run-time Error '1004': Application-defined or object-defined error.
*Frustrated*I'm simply trying to put the formula into the cell and fill down until there are no more entries in the column to the left.
it has to be the formula because when i put a value it works. for example:
Range("e3".Formula= 0
not sure why it wont take. maybe if i put the formula as a variable?
I dunno. any suggestions would be helpful.
thanks
Desert_dweller5
range("E3").Formula = "=IF(ISERROR(VLOOKUP(D3,$B$3:$C$19037,2,FALSE)),,VLOOKUP(D3,$B$3:$C$19037,2,FALSE)"
Range(e3:e20000).filldown
End Sub
This is my code. it wont run.
Run-time Error '1004': Application-defined or object-defined error.
*Frustrated*I'm simply trying to put the formula into the cell and fill down until there are no more entries in the column to the left.
it has to be the formula because when i put a value it works. for example:
Range("e3".Formula= 0
not sure why it wont take. maybe if i put the formula as a variable?
I dunno. any suggestions would be helpful.
thanks
Desert_dweller5