Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

excel vba, rounding a textbox value 1

Status
Not open for further replies.

Zebadiah

Technical User
Apr 29, 2001
22
US
My problem is that the calculated value is too small, so in the text box it displays as
5.209933-E02
When what I want is
0.0521

I've tried Round as a function, but vba doesn't support it, and my IT just reinstalled everything on my machine, EXCEPT the VBA help files.

thanks in advance
 
Already tried that.

It seems to ignore it in favor of scientific notation.
 
If it's a cell that you are trying to change, how about:

Selection.NumberFormat = "0.0000"
 
Nope, the cell value displays correctly.
But in the textbox on my form, its in scientific notation
 
Where is the number feeding from? If its feeding from somewhere already formatted as scientific notation it may be picking that up, in which case re-format your source data. Store300

Store300@ftnetwork.com
 
Feeding from a calculation that isn't in scientific format.

Wound up getting it to finally display right by making the text box twice as large as I'd like.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top