LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default Undesired Rounding in VBA; accumulating values

Sorry I don't have a copy of the source code handy, but here goes:

I'm reading values from a series of cells in one sheet (stored in a 2D
array), then accumulating values in a destination sheet. The array is
type Double; using XL2002.

The source data goes to three decimal places (ex. 0.245), but the
value accumulated is rounded (ex. 0.25).

Source Sheet reading:
ActiveCell.Offset(Row, Column).Value = dblArray(RV,CV)

Destination Sheet accumulating:
ActiveCell.Offset(Row, Column).Value =
ActiveCell.Offset(Row,Column).Value + dblArray(RV,CV)


-Glenn
Any clue as to why this is happening?
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
On exit from edit, Excel jumps to remote undesired cell. [email protected] Excel Discussion (Misc queries) 2 July 21st 08 12:15 PM
Undesired links: Pasting from one excel document to another ProS Links and Linking in Excel 1 December 30th 07 08:35 PM
Rounding up values Sarah (OGI) Excel Worksheet Functions 1 September 20th 07 11:17 AM
accumulating values generated daily Tracey Excel Worksheet Functions 1 April 15th 06 08:07 AM
Accumulating Values in a Pivot table Kurt Excel Discussion (Misc queries) 2 March 2nd 05 08:42 PM


All times are GMT +1. The time now is 06:59 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"