ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Converting text data type to numeric (https://www.excelbanter.com/excel-programming/313542-converting-text-data-type-numeric.html)

Marilyn

Converting text data type to numeric
 
I am exporting data from ACCESS 2000 database to EXCEL via ACCESS VBA. The
datasource is a query.
There are numeric fields in the query but after exporting, the numeric data type is changed to text.

How do programmaticaly change the data type of the EXCEL columns.

I'm using the following statement after loading the data into an array.


oSheet.Range("A2").Resize(irows, icol).Value = vArray
vArray is defined as variant.




All times are GMT +1. The time now is 11:53 AM.

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