For anyone who's willing to help out a beginner...
I'm trying to insert a formula in a cell as part of a macro but I can't seem to get it to work. This is the code I'm using to do that.
cell4.FormulaR1C1 = "=RC[-2]/" & cell3.Address
Which gives me an error.
However, if I do this, I get no error, but it obviously doesn't get the job done:
cell4.FormulaR1C1 = "RC[-2]/" & cell3.Address
Why does the "=" cause an error when concatenating. (It doesn't cause an error when I leave out the "& cell3.Address".) And is there any easy way to get around this?
I'm trying to insert a formula in a cell as part of a macro but I can't seem to get it to work. This is the code I'm using to do that.
cell4.FormulaR1C1 = "=RC[-2]/" & cell3.Address
Which gives me an error.
However, if I do this, I get no error, but it obviously doesn't get the job done:
cell4.FormulaR1C1 = "RC[-2]/" & cell3.Address
Why does the "=" cause an error when concatenating. (It doesn't cause an error when I leave out the "& cell3.Address".) And is there any easy way to get around this?