himavantht
New Member
Hi All,
I need help on extracting data from Excel file.
I cannot use MS Excel VBO - because Sheet has more than 10 duplicate column names(but data inside them is different). So if I try to extract using Excel VBO I get an error stating column name already exists in the data table.
So I tried using OLEDB with a query("Select * from [Sheet1$]") - This is extracting data into a collection as per my demands
But, extracted data differs in formatting. Ex: Date cells are adding 06:30:00 along with Date. Decimals are considering as round up values(1.0000 to 1). (Formatting is getting changed while reading and getting data to collection).
Some workarounds like - Changing cell formatting using excel VBO cannot be done because there are more than 50+ columns and there are 16 diff files I need to extract data. So it's very difficult to change cell formatting individually.
Is there any way we can extract the same Data(with the same formatting) from the sheet to the collection using OLEDB?
Thanks in advance!
I need help on extracting data from Excel file.
I cannot use MS Excel VBO - because Sheet has more than 10 duplicate column names(but data inside them is different). So if I try to extract using Excel VBO I get an error stating column name already exists in the data table.
So I tried using OLEDB with a query("Select * from [Sheet1$]") - This is extracting data into a collection as per my demands
But, extracted data differs in formatting. Ex: Date cells are adding 06:30:00 along with Date. Decimals are considering as round up values(1.0000 to 1). (Formatting is getting changed while reading and getting data to collection).
Some workarounds like - Changing cell formatting using excel VBO cannot be done because there are more than 50+ columns and there are 16 diff files I need to extract data. So it's very difficult to change cell formatting individually.
Is there any way we can extract the same Data(with the same formatting) from the sheet to the collection using OLEDB?
Thanks in advance!