I have the below code in Sheet1;
Cells(lastRow + 10, "R").FormulaR1C1 = "=R[-4]C+R[-4]C[-3]"
How can I adjust this such that;
- If cell F1 in the 'Man' worksheet = 1 then Cells(lastRow + 10, "R").FormulaR1C1 = "=R[-4]C+R[-4]C[-3]"
- If cell F1 in the 'Man' worksheet <> 1 then Cells(lastRow + 10, "R").FormulaR1C1 = "=R[-4]C"
Thanks
Cells(lastRow + 10, "R").FormulaR1C1 = "=R[-4]C+R[-4]C[-3]"
How can I adjust this such that;
- If cell F1 in the 'Man' worksheet = 1 then Cells(lastRow + 10, "R").FormulaR1C1 = "=R[-4]C+R[-4]C[-3]"
- If cell F1 in the 'Man' worksheet <> 1 then Cells(lastRow + 10, "R").FormulaR1C1 = "=R[-4]C"
Thanks