H
Highlystrung
I’m trying to put a formulae into a spreadsheet in a program as thus:
ActiveCell.FormulaR1C1 = "=RC[6] & ""_"" & RC[7]"
This works fine but I’d like to replace the numbers giving the columns with
variables i and j. I can’t seem to get a syntax sorted that doesn’t fall
over. Can anyone help?
Here's one variant that I tried: ActiveCell.FormulaR1C1 = "=RC[" & i & "]" &
"_" & "RC[" & j & "]" where i and j are variables. Clearly not doing
something right! Any help greatly appreciated,
ActiveCell.FormulaR1C1 = "=RC[6] & ""_"" & RC[7]"
This works fine but I’d like to replace the numbers giving the columns with
variables i and j. I can’t seem to get a syntax sorted that doesn’t fall
over. Can anyone help?
Here's one variant that I tried: ActiveCell.FormulaR1C1 = "=RC[" & i & "]" &
"_" & "RC[" & j & "]" where i and j are variables. Clearly not doing
something right! Any help greatly appreciated,