Re: Number variable loses format on write
- From: Dave Peterson <petersod@xxxxxxxxxxxxxxxx>
- Date: Thu, 25 Aug 2005 14:20:10 -0500
If you look in the formulabar, do you see all 4 decimals?
If yes, try widening the column.
If no, what value do you see in the debugger and what value do you see in the
formulabar?
Halray wrote:
>
> Have have a varibale declared as a double, read a number into it from a file.
> THe variable is indicated with four decimal places when viewed in the
> debugger. When I write the variable out to Excel using the following the
> number gets truncated to two decimal places:
>
> With ActiveWorkbook.Worksheets("Dump Area")
> .Cells(RowNumber, 2) = AreaCounts
>
> Anyone have any suggestions to fix this problem?
>
> Thanks !
>
> --
> Ray
--
Dave Peterson
.
- Follow-Ups:
- Re: Number variable loses format on write
- From: Halray
- Re: Number variable loses format on write
- References:
- Number variable loses format on write
- From: Halray
- Number variable loses format on write
- Prev by Date: Re: VLOOKUP with LARGE
- Next by Date: Re: Need help for sure
- Previous by thread: Number variable loses format on write
- Next by thread: Re: Number variable loses format on write
- Index(es):