The following vba line successfully inserts a Substitute Formula into one cell that refers to another cell 46 columns to the left:
ActiveCell.FormulaR1C1 = "=SUBSTITUTE(RC[-46],BoxPipe2,""|"")"
I want to replace the 46 with a numeric variable called 'nc'. But I get an error when I try to run...