JPS
To put your formula in the range from A1 to the last cell in column A of the sheet's used range :-
Sub Fill_Formula()
Dim LastRow As Long
LastRow = Cells.Find(What:="*", _
SearchDirection:=xlPrevious, _
SearchOrder:=xlByRows).Row
Range("A1:A" & LastRow).FormulaR1C1 = "Your formula in R1C1 format"
End Sub
Alternatively, if your formula is always already entered in A1, you can copy it down to the last cell with :-
Sub Copy_Formula()
Dim LastRow As Long
LastRow = Cells.Find(What:="*", _
SearchDirection:=xlPrevious, _
SearchOrder:=xlByRows).Row
Range("A1").Copy
Range("A2:A" & LastRow).PasteSpecial Paste:=xlPasteFormulas
Application.CutCopyMode = False
End Sub
Celia
Thanks Celia,
I will give it a try and let you know if it works for me.
Many Thanks!
JPS