Did you want an identical copy of the formula (same range references)...
Selection.Formula = Selection.Offset(, -1).Formula
Or did you want the range reference to update for their new location...
Selection.Offset(, -1).Copy Selection
-- Rick (MVP - Excel)
"Nikki" <Nikki[ at ]discussions.microsoft.com> wrote in message news:869AEBD6-ED65-4642-8DBB-06A1CBBE75CF[ at ]microsoft.com...
[Quoted Text] > Can anyone please give me a code that copies the preceeding cell and > inserts > the formula only into the selected cell?
|