ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Decimal type in Excel 97 (https://www.excelbanter.com/excel-programming/346013-decimal-type-excel-97-a.html)

E-Cube

Decimal type in Excel 97
 
I am creating an vb.net application that uses Excel 97 to generate xls reports.

I create an array object that contains dot.net decimal types and pass that
array object into a range object from Excel 97, would errors occur? I ask
because I get 0x800A03EC when setting a range objects value method to the
data array I created.


Thank you in advance for your assistance.



Jerry W. Lewis

Decimal type in Excel 97
 
You must explicitly coerce from decimal to double before putting them into a
range object.

Jerry

"E-Cube" wrote:

I am creating an vb.net application that uses Excel 97 to generate xls reports.

I create an array object that contains dot.net decimal types and pass that
array object into a range object from Excel 97, would errors occur? I ask
because I get 0x800A03EC when setting a range objects value method to the
data array I created.


Thank you in advance for your assistance.



E-Cube

Decimal type in Excel 97
 
Jerry,

Thank you that worked.

Eric

"Jerry W. Lewis" wrote:

You must explicitly coerce from decimal to double before putting them into a
range object.

Jerry

"E-Cube" wrote:

I am creating an vb.net application that uses Excel 97 to generate xls reports.

I create an array object that contains dot.net decimal types and pass that
array object into a range object from Excel 97, would errors occur? I ask
because I get 0x800A03EC when setting a range objects value method to the
data array I created.


Thank you in advance for your assistance.




All times are GMT +1. The time now is 12:42 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com