Copy data from txt file (2.2 Million rows) to excel

Vincent paul

New Member
Joined
Oct 8, 2014
Messages
22
Hi,

I have a huge text file which consists 22 Lacs rows of data:eeek::eeek:. Need to copy the data to excel. while copying Once the excel copied data till 65000 row it should start to save in new worksheet till EOF.

Have tried available sources in forum and google but nothing works as expected. Any help would be highly appreciated;).
 

Excel Facts

Excel Joke
Why can't spreadsheets drive cars? They crash too often!
Thanks for the Quick Reply.

Below red highlighted line throwing Error.

'Open an ADO connection to the folder specified
Set oConn = CreateObject("ADODB.CONNECTION")
oConn.Open "Provider=Microsoft.Jet.OLEDB.4.0;" & _
"Data Source=" & strFilePath & ";" & _
"Extended Properties=""text;HDR=Yes;FMT=Delimited"""
Error :
Run_time Error '3706'
Provide cannot be found. It may not be properly installed.

Tried, [FONT=&quot]Adding reference for Microsoft Activex Data Objects Library.

Thanks in advance..[/FONT]
 
Upvote 0
Ooooooooooh. Then, put simply I don't know - Works fine for me and it isn't code I created, so...

I can tell you that from within the VBE under Tools > References I have;

Visual Basic for Applications
Microsoft Excel 14.0 Object Library
OLE Automation
Microsoft Office 14.0 Object Library

All ticked?

I'm running Windows 7 and using Excel 2010 if that means anything?
 
Upvote 0

Forum statistics

Threads
1,224,765
Messages
6,180,845
Members
453,001
Latest member
coulombevin

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top