Howdy folks, if your textbox is named textbox1, you can use the BeforeUpdate event (code stored in userform module) to format your text entry. It will convert your number (i.e., .2 = 20%)<pre>
Private Sub TextBox1_BeforeUpdate(ByVal Cancel As MSForms.ReturnBoolean)
Me.TextBox1.Value = Format(Me.TextBox1.Value, "0.00%")
End Sub</pre>
Similar procedure for other types of formatting. Hope this helps.
Edit: A workaround for the % conversion looks like:<pre>
Private Sub TextBox1_BeforeUpdate(ByVal Cancel As MSForms.ReturnBoolean)
Me.TextBox1.Value = Format(Me.TextBox1.Value / 100, "0.00%")
End Sub</pre>
_________________
Cheers,<font size=+2><font color="red"> Nate<font color="blue"> Oliver</font></font></font>
This message was edited by NateO on 2002-07-15 17:16