Private Sub CommandButton1_Click() Dim num1 As Double Dim num2 As Double num1 = Val(TextBox1) num2 = Val(TextBox2) If num1 > num2 Then MsgBox "El número " & num1 & "es mayor que" & num2 Else MsgBox "El número " & num2 & "es mayor que" & num1 End If TextBox1 = imput TextBox2 = imput End Sub