Thread: Formula ?
View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.programming
Joe[_39_] Joe[_39_] is offline
external usenet poster
 
Posts: 4
Default Formula ?

Hi
I tried to put a formula (vb+vba) and could not do it.

Code:
S="=IF(ISBLANK($C1),,$C1-$D1)"
xlsRange.FormulaR1C1 = S

When I opened the file, the formula was:
=IF(ISBLANK($K:$K),,'D11'-$K:$K)

What is wrong?

Thank you.
Joe