K Karen53 Feb 28, 2008 #1 Hi, Is there a way to return the formula of a cell as a string in another cell?
O OssieMac Feb 28, 2008 #2 Hi Karen, Dim strFormula As String Range("A13").FormulaR1C1 = "=SUM(R[-12]C:R[-1]C)" strFormula = Range("A13").Formula Range("A14") = "'" & strFormula
Hi Karen, Dim strFormula As String Range("A13").FormulaR1C1 = "=SUM(R[-12]C:R[-1]C)" strFormula = Range("A13").Formula Range("A14") = "'" & strFormula
K Karen53 Feb 28, 2008 #3 Thanks OssieMac -- Thanks for your help. Karen53 OssieMac said: Hi Karen, Dim strFormula As String Range("A13").FormulaR1C1 = "=SUM(R[-12]C:R[-1]C)" strFormula = Range("A13").Formula Range("A14") = "'" & strFormula -- Regards, OssieMac Karen53 said: Hi, Is there a way to return the formula of a cell as a string in another cell? Click to expand... Click to expand...
Thanks OssieMac -- Thanks for your help. Karen53 OssieMac said: Hi Karen, Dim strFormula As String Range("A13").FormulaR1C1 = "=SUM(R[-12]C:R[-1]C)" strFormula = Range("A13").Formula Range("A14") = "'" & strFormula -- Regards, OssieMac Karen53 said: Hi, Is there a way to return the formula of a cell as a string in another cell? Click to expand... Click to expand...
B Bob Phillips Feb 28, 2008 #4 Activecell.Value = "'" & Range("C1").Formula -- --- HTH Bob (there's no email, no snail mail, but somewhere should be gmail in my addy)
Activecell.Value = "'" & Range("C1").Formula -- --- HTH Bob (there's no email, no snail mail, but somewhere should be gmail in my addy)