Solved

Format Number in Answer Box

Posted on 2000-02-20
1
145 Views
Last Modified: 2010-05-02
How do I Format a number in the answer box(txtAnswer.Text) with 3 decimal places, No leading zeros and no commas
0
Comment
Question by:earth2d
1 Comment
 
LVL 14

Accepted Solution

by:
mcrider earned 10 total points
ID: 2540321
Use the Format statement....

For example:

   Dim X
   X = 2.23456
   txtAnswer.Text = Format(X,"#.000")

txtAnswer will contain 2.234


Cheers!
0

Featured Post

NAS Cloud Backup Strategies

This article explains backup scenarios when using network storage. We review the so-called “3-2-1 strategy” and summarize the methods you can use to send NAS data to the cloud

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction In a recent article (http://www.experts-exchange.com/A_7811-A-Better-Concatenate-Function.html) for the Excel community, I showed an improved version of the Excel Concatenate() function.  While writing that article I realized that no o…
You can of course define an array to hold data that is of a particular type like an array of Strings to hold customer names or an array of Doubles to hold customer sales, but what do you do if you want to coordinate that data? This article describes…
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…

773 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question