i like start formula fill down in column "C" from end xldown value to TextBox1 value
in my example TextBox1 value is 10 i.e. formula fill down 10 cells from "C"xldown cells
i attache image file and sample file
my macro is
in my example TextBox1 value is 10 i.e. formula fill down 10 cells from "C"xldown cells
i attache image file and sample file
my macro is
Code:
Sub test()
Dim i As Integer
Dim lrow As Long
lrow = Sheets("Sheet1").Range("A" & Rows.Count).End(xlUp).Row
Sheets("Sheet1").Range("A3").End(xlDown).Select
Range("A3").End(xlDown).Offset(0, 2).Value = 12000
For i = lrow To lrow + TextBox1.Value
Sheets("Sheet1").Range("C" & i).End(xlDown).Offset(1, 0).Value = Sheets("Sheet1").Range("C" & i - 1).End(xlDown).Value * (1 + 6 / 100)
Next i
End Sub
Attachments
Last edited by a moderator: