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 Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Hi, I have an excel spreadsheet

Status
Not open for further replies.
Apr 27, 1999
705
US
Hi,

I have an excel spreadsheet that has a cell value of 4.30. When I'm reading it in from vbscript the value becomes 4.3. Is there a way to make sure I can see "4.30" instead of "4.3"?

Thanks,

Fengshui1998
 
How are you reading it in using VB Script? If you are using the Range object, just read the Text property instead of the Value property. This should give you the displayed value. If you specifically want two decimal places, use the Format(CellValue, "0.00") method.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top