Miguel
Off the cuff, if you are using decimals in Both txtboxes
In userform initialize.
[vba]
Me.Txtbox1.Value=Format(0#, "##0.00")
Me.Txtbox2.Value=Format(0#, "##0.00")
[/vba]
Amend your code and add Me. before the Txtbox1.value for eg
[vba]
Private Sub CommandButton1_Click()
' P2 If Me.TextBox1.Value <> "" And Me.TextBox2.Value <> 0 Then
Sheets("Auxiliar").Range("H2").Value = Me.TextBox1.Value
Sheets("Auxiliar").Range("I2").Value = Me.TextBox2.Value
Sheets("Auxiliar").Range("D2").Value = (Me.TextBox1.Value / Me.TextBox2.Value)
Me.TextBox1.Value = ""
Me.TextBox2.Value = ""
End If
UserForm2.Hide
End Sub
[/vba]