JerryKlmns
IS-IT--Management
Hi everyone.
In Excel VBA this
works fine and at line 2 results in H2:=G2-S2
and also this
returns the same result (where S2=0.77)
When I change to this
I expect H2:=G2-0.77 but I get an Application Error..
Why can't I use a cell's value inside a formula? Am I setting it the wrong way?
In Excel VBA this
Code:
.Range("H" & iRow).Formula = "=G" & iRow & "- S" & iRow
and also this
Code:
.Range("H" & iRow).Formula = "=G" & iRow & "- 0.77"
When I change to this
Code:
.Range("H" & iRow).Formula = "=G" & iRow & "-" .Range("S"& iRow).Value
Why can't I use a cell's value inside a formula? Am I setting it the wrong way?