my userform
TextBox1 = 5
TextBox2 = 15
TextBox3= 10000
my code is below
Dim i As Integer
For i = TextBox1.Value To TextBox2.Value
cells(3, 3).Value = TextBox3.Value * 12
cells(4, 3).Value = cells(3, 3).Value * (1 + 6 / 100)
Next i
i need to calculate above code up to difference between TextBox1 To TextBox2 value in sheets1 in range "C3" to next 10 rows ( TextBox1 = 5 - TextBox2 = 15 )
pls give me correct code for your refrance attache excel file
TextBox1 = 5
TextBox2 = 15
TextBox3= 10000
my code is below
Dim i As Integer
For i = TextBox1.Value To TextBox2.Value
cells(3, 3).Value = TextBox3.Value * 12
cells(4, 3).Value = cells(3, 3).Value * (1 + 6 / 100)
Next i
i need to calculate above code up to difference between TextBox1 To TextBox2 value in sheets1 in range "C3" to next 10 rows ( TextBox1 = 5 - TextBox2 = 15 )
pls give me correct code for your refrance attache excel file