Hi,
I have the following code in a macro and it doesn’t like the quotes I use for defining the cell as BLANK (as opposed to zero)… it works if I put a zero in it instead of the “”. Of course the formula works in Excel, but VBA gets confused because of my quotes… is there another option for telling it if it is BLANK (I don’t want it to be zero), then, etc… I’m needing the actual formula in Excel, so this is why I have it coded the way I do. Any help is always appreciated!
Thanks!!!
Lana
Range(“K9”) = “=VLOOKUP(J9,$AE$2:$AG$13,3,FALSE)”
Range(“L9”) = “=G9*K9”
Range(“M9”) = “=IF(H9=””,””,H9)”
Range(“N9”) = “=IF(G9″”,E9*(1+L9),E9+M9)”
Range(“O9”) = “=N9/D9”