>I want to insert a formula into a specific cell, something like
>
[quoted text clipped - 10 lines]
>
>--mike
Double the quotes within the formula.
Also, if you are going to use the FormulaR1C1 property, you MUST use the R1C1
type of reference within the formula.
For example:
ActiveCell.FormulaR1C1 = "=Right(""0000"" & r3c3,4)"
--ron
Bob Phillips - 07 Jan 2006 11:57 GMT
or use A1
ActiveCell.Formula = "=Right(""0000""&C3,4)"

Signature
HTH
Bob Phillips
(remove nothere from email address if mailing direct)
> >I want to insert a formula into a specific cell, something like
> >
[quoted text clipped - 21 lines]
>
> --ron
Ron Rosenfeld - 07 Jan 2006 13:47 GMT
>or use A1
>
>ActiveCell.Formula = "=Right(""0000""&C3,4)"
Many ways to skin a cat in Excel!
--ron