return formula in cell as string

  • Thread starter Thread starter Karen53
  • Start date Start date
K

Karen53

Hi,

Is there a way to return the formula of a cell as a string in another cell?
 
Hi Karen,

Dim strFormula As String

Range("A13").FormulaR1C1 = "=SUM(R[-12]C:R[-1]C)"

strFormula = Range("A13").Formula

Range("A14") = "'" & strFormula
 
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?
 
Activecell.Value = "'" & Range("C1").Formula

--
---
HTH

Bob


(there's no email, no snail mail, but somewhere should be gmail in my addy)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top