Home |
Search |
Today's Posts |
#1
|
|||
|
|||
Small Decimal Won't Copy
I already have a workaround, but would like to understand why this was a problem (Excel 2007):
I have VBA code that is supposed to copy a row of numeric values into a corresponding range of cells in another worksheet. Range("D13:P13").Cells(x).Value = cel.Offset(0, x).Value I just found, though, that when one of the cells contains .0010, it comes across as .0000. Both cells have the same number format, so I am nonplussed at this. My workaround, which solved the problem, is: Range("D13:P13").Cells(x).Value = Val(CStr(cel.Offset(0, x).Value)) Somehow, casting the original value to a string, then back to a numeric value, makes it come out as .0010 as it should. WHY was it not coming across correctly in the first place? |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
large file - copy and paste small group | Excel Discussion (Misc queries) | |||
ISERROR,SMALL,INDEX, MATCH, SMALL?? | Excel Discussion (Misc queries) | |||
HOW DO I COPY & PASTE A SMALL INFO FM AN XL TO THE CELL COMMENT | Excel Worksheet Functions | |||
Office 2000-Small Business, XCEL eror = copy/paste error | Excel Discussion (Misc queries) | |||
i have lost the small + that allows mass copy of formulas in excel | Excel Discussion (Misc queries) |