hello,
I have a textbox in a USERFORM that evaluates itself.
I want the text box to not just evaluate, but evaluate and display back in Format((Textbox1.value),"#,#")
example :
when I tyope 15000 + 15001 , the textbox should display 30,001
What I tried
Private Sub drum_weight_AfterUpdate()
With Me.drum_weight
.Value = Format((Evaluate(.Value)),"#,#")
End With
End Sub
It gives a weird error
I even tried :
Private Sub drum_weight_AfterUpdate()
With Me.drum_weight
.Value = Evaluate(.Value)
.Value.NumberFormat = "$#,##0.00"
End With
End Sub
still doesn't work... In the past I have used evaluate and have rounded the text box by using and it worked
With Me.drum_weight
.Value = Round((Evaluate(.Value)),2)
End With
Any help will be much appreciated
Bookmarks