1 Attachment(s)
ADODB Get actual displayed values
I have an Excel file that contains columns with mixed data formats (i.e., the first row heading is text, the remaining values are percentage, the first row heading is text the remaining rows are currency etc.
I am trying to retrieve these values as their actual displayed percentage, currency values via an ADODB connection:
Attachment 31220
strConn = "Provider=Microsoft.ACE.OLEDB.12.0;" & _
"Data Source=" & dbPath & ";" & _
"Extended Properties=""Excel 12.0 Xml;HDR=YES;IMEX=1"";"
But it isn't working. I am getting their text equivalents e.g, $12.00 is returned as 12
5.00% is returned as .05
Is there a way to get the actual values from the Excel record fields? Thanks
Cross posted at: https://www.msofficeforums.com/excel...al-values.html