Hi all,
I have the following userform that returns the % change between two numbers:
Private Sub CommandButton1_Click()
On Error Resume Next
answer.Text = (Val(y.Text) - Val(x.Text)) / Val(y.Text) * 100
End Sub
Does anyone know how to ensure that it only displays the answer to one decimal place in the textbox?
Thanks
Nick
I have the following userform that returns the % change between two numbers:
Private Sub CommandButton1_Click()
On Error Resume Next
answer.Text = (Val(y.Text) - Val(x.Text)) / Val(y.Text) * 100
End Sub
Does anyone know how to ensure that it only displays the answer to one decimal place in the textbox?
Thanks
Nick