Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Opening .csv with > 65,000 rows

0 views
Skip to first unread message

Torin

unread,
May 8, 2003, 12:22:34 PM5/8/03
to
I have a process generating .csv files with > 65,000 lines
in each file.

How can I split this file into two so that I can view it
in excel? Are there any other apps that can edit a .csv
file of that size?

Jim Rech

unread,
May 8, 2003, 12:32:09 PM5/8/03
to
>> Are there any other apps that can edit a .csv file of that size?

I would expect WordPad to be able to handle this. Worth a try.

--
Jim Rech
Excel MVP


Ken Wright

unread,
May 8, 2003, 12:39:02 PM5/8/03
to
Have you thought about putting a .txt extension on it and the using the Import wizard. You will lose everything after
the last row Excel can accommodate (Probably 65535) but can then repeat on another sheet but specify that as your start
line in the import wizard.

--
Regards
Ken....................... Microsoft MVP - Excel
Sys Spec - Win XP Pro / XL2K & XLXP

----------------------------------------------------------------------------
Polite Request - It is very very much appreciated in
text-only groups if you do not attach files - Thanks
----------------------------------------------------------------------------

"Torin" <torin....@db.com> wrote in message news:045b01c3157e$08795da0$3301...@phx.gbl...

Phobos

unread,
May 8, 2003, 1:36:03 PM5/8/03
to
Sounds like a job for Access.

P


"Torin" <torin....@db.com> wrote in message
news:045b01c3157e$08795da0$3301...@phx.gbl...

Wilson

unread,
May 8, 2003, 3:00:11 PM5/8/03
to
Here is Bernie Deitrick's code for opening very large text files in Excel
Sub LargeFileImport()
'Bernie Deitrick's code for opening vary large text files in Excel
'Dimension Variables
Dim ResultStr As String
Dim FileName As String
Dim FileNum As Integer
Dim Counter As Double
'Ask User for File's Name
FileName = Application.GetOpenFilename
'Check for no entry
If FileName = "" Then End
'Get Next Available File Handle Number
FileNum = FreeFile()
'Open Text File For Input
Open FileName For Input As #FileNum
'Turn Screen Updating Off
Application.ScreenUpdating = False
'Create A New WorkBook With One Worksheet In It
Workbooks.Add Template:=xlWorksheet
'Set The Counter to 1
Counter = 1
'Loop Until the End Of File Is Reached
Do While Seek(FileNum) <= LOF(FileNum)
'Display Importing Row Number On Status Bar
Application.StatusBar = "Importing Row " & Counter & " of text file " &
FileName
'Store One Line Of Text From File To Variable
Line Input #FileNum, ResultStr
'Store Variable Data Into Active Cell
If Left(ResultStr, 1) = "=" Then
ActiveCell.Value = "'" & ResultStr
Else
ActiveCell.Value = ResultStr
End If
If ActiveCell.Row = 65536 Then
'If On The Last Row Then Add A New Sheet
ActiveWorkbook.Sheets.Add
Else
'If Not The Last Row Then Go One Cell Down
ActiveCell.Offset(1, 0).Select
End If
'Increment the Counter By 1
Counter = Counter + 1
'Start Again At Top Of 'Do While' Statement
Loop
'Close The Open Text File
Close
'Remove Message From Status Bar
Application.StatusBar = False
End Sub
HTH

"Torin" <torin....@db.com> wrote in message
news:045b01c3157e$08795da0$3301...@phx.gbl...
0 new messages