Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Problem reading with Percentage values

Hi,

I am using OleDB provider to read excel file. I am facing the
problem when reading percentage values from some excel sheets (very rarely).
Suppose a cell has 42.3%, when reading the value it comes like 0.423... but
while reading other Workbook's excel sheets (for those actual value is
24.7%), it reads properly like 24.7.... When i checked excel sheet cell
Format for both Workbooks, it is same with Percentage with 1 decimal.

Connection String i am using to read excel sheet is


Provider=Microsoft.ACE.OLEDB.12.0; Data Source='"

+ strFilePath.Replace("'", "''") + "';Extended Properties=Excel 12.0;



where strFilePath provides the path to excel document.


Thanks
Anil
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
xl2007 - Reading Values and XValues Greg Wilson Charts and Charting in Excel 0 March 1st 09 06:33 PM
Reading values from inputbox into arrays Nayab Excel Programming 2 August 19th 08 01:20 PM
Reading values from a closed workbook Graham F New Users to Excel 6 July 28th 08 03:32 PM
READING values from a closed workbook kev_06[_25_] Excel Programming 8 July 14th 06 10:30 PM
line of best fit/reading values from graphs Becky Hutchinson Excel Discussion (Misc queries) 4 December 27th 05 06:16 PM


All times are GMT +1. The time now is 09:40 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"