Error in named cell formula
Hi, I am trying to multiply a named cell with an unnamed cell and can’t find a solution. I have the following named cells A1-one, B1=two. If I use code .Range("C1").FormulaR1C1 = "=(one*two)", I get the correct answer, however if I use the code .Range("C1").FormulaR1C1 = "=(one*B2)" I get #NAME?
Soooo, my question is
A. can I multiply a named cell with an un-named cell?
B. What does .FormulaR1C1 mean?
<o>Thanks.</o>
Hi, I am trying to multiply a named cell with an unnamed cell and can’t find a solution. I have the following named cells A1-one, B1=two. If I use code .Range("C1").FormulaR1C1 = "=(one*two)", I get the correct answer, however if I use the code .Range("C1").FormulaR1C1 = "=(one*B2)" I get #NAME?
Soooo, my question is
A. can I multiply a named cell with an un-named cell?
B. What does .FormulaR1C1 mean?
Rich (BB code):
Sub testname()
With ThisWorkbook.Worksheets("sheet1")
<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /><o:p></o:p>
.Range("one").Formula = (5#)
.Range("two").Formula = (10#)
.Range("C1").FormulaR1C1 = "=(one*b2)"
<o:p></o:p>
End With
End Sub