drom
Well-known Member
- Joined
- Mar 20, 2005
- Messages
- 543
- Office Version
- 2021
- 2019
- 2016
- 2013
- 2011
- 2010
- 2007
Hi and thanks in advance!
I have one array with with many rows and Columns, populated using a Macro
when I have to paste this array in a sheet.
I get the Values OK, but the formatting of the pasted cells do not show the values the way I was expecting.
I mean: say
but if aData(2,5) is equal to 106201700000036, because this value comes from a sheet("XX").range("C25000") and this cell shows the full value and is formatted as Text
Sheets(1).Cells(3, 6) shows 1,06202E+14, despite this Column is formatted as well as Text
is there any way of avoiding this ?
ps: the Pasted Place is formatted the same way the origin cells,
so when I need Text comes and goes to columns formatted as Text
When I need Value comes and goes from Columns formatted as values
Thanks!
I have one array with with many rows and Columns, populated using a Macro
when I have to paste this array in a sheet.
I get the Values OK, but the formatting of the pasted cells do not show the values the way I was expecting.
I mean: say
Code:
Sheets(1).Cells(5, 1).Resize(xRows, xCols) = aData
xRows is equal to UBound(aData, 1)
xCols is equal to UBound(aData, 2)
but if aData(2,5) is equal to 106201700000036, because this value comes from a sheet("XX").range("C25000") and this cell shows the full value and is formatted as Text
Sheets(1).Cells(3, 6) shows 1,06202E+14, despite this Column is formatted as well as Text
is there any way of avoiding this ?
ps: the Pasted Place is formatted the same way the origin cells,
so when I need Text comes and goes to columns formatted as Text
When I need Value comes and goes from Columns formatted as values
Thanks!