Bom dia!!
Private Sub UserForm_Initialize()
Textbox1Text = Format(Range("I8"), "$#,##0.00")
End Sub
Private Sub TextBox1_LostFocus()
With Me.TextBox1
If Not IsNumeric(.Value) Then
MsgBox "Somente numeros"
.Value = vbNullString
Else
.Text = Format(.Value, "$#,##0.00")
End If
End With
End Sub
Tente usar nossa base de dados.
Att
Existem mil maneiras de preparar Neston. Invente a sua!
http://www.youtube.com/ExpressoExcel
Postado : 04/12/2012 6:01 am