I'm looking for an elegant way to do this.
I'm using Format to calculate a value that gets added to a temporary table before the table values are exported to an xls as below.
The two completely different methods I'm using to copy the field into xls are to use objSht.Cells() and objSht.Range().CopyFromRecordset.
Everything works except when the field ends up in the spreadsheet, I'm looking at 13 decimal places. Is there a good way to trim this down beforehand? As info, the field in the table (pre export) "appears" with only 2 decimal places as it should, but, that's just the displayed formatting.
Mike
I'm using Format to calculate a value that gets added to a temporary table before the table values are exported to an xls as below.
Code:
asnTOT(y, 0, x) = Format(asnTOT(y, 0, x) / asnTOT(y, 1, x), "###0.00")
The two completely different methods I'm using to copy the field into xls are to use objSht.Cells() and objSht.Range().CopyFromRecordset.
Everything works except when the field ends up in the spreadsheet, I'm looking at 13 decimal places. Is there a good way to trim this down beforehand? As info, the field in the table (pre export) "appears" with only 2 decimal places as it should, but, that's just the displayed formatting.
Mike