Re: Opening CSV file with 69000 + rows in Excel using VBA
From: Jim Thomlinson (JimThomlinson_at_discussions.microsoft.com)
Date: 03/22/05
- Next message: Mervyn Thomas: "Set Print Area programatically"
- Previous message: Chip Pearson: "Re: Control Panel"
- In reply to: Tom Ogilvy: "Re: Opening CSV file with 69000 + rows in Excel using VBA"
- Next in thread: Tom Ogilvy: "Re: Opening CSV file with 69000 + rows in Excel using VBA"
- Messages sorted by: [ date ] [ thread ]
Date: Tue, 22 Mar 2005 11:03:02 -0800
Knowing now that he is willing to toss the data out you are correct. My
original assumption was the he would want to store the data, and if it could
be stored in one place that is usually best (instead of getting multiple
*** involved). I then got myself on a one track (Access) solution, similar
to what I did for a previous project. I guess what I am tryin to say is you
are absolutely correct. ADO will work great in this instance.
"Tom Ogilvy" wrote:
> If your going to use ADO, there is no need to involve Access.
>
> --
> Regards,
> Tom Ogilvy
>
>
> "Philip" <Philip@discussions.microsoft.com> wrote in message
> news:7DE7888F-3992-491A-9456-FBFA0ECC7592@microsoft.com...
> > Hi,
> >
> > How could I create that Access db on the fly at runtime, use it to load
> and
> > handle the data, then destroy it?
> >
> > I tried using the Access 9 Library in VBA, and there is no 'dim oDB as New
> > Database' option...
> >
> > Is that possible?
> >
> > "Jim Thomlinson" wrote:
> >
> > > Any possibility to drop the CSV into MS Access and then query the data
> out
> > > from there. If not then you are left with reading the text file one line
> at a
> > > time and using the split function. Then pasting the array generated by
> the
> > > split function into the ***, incrementing the *** as necessary...
> That is
> > > kinda slow and ugly though... Access would be a much better option. You
> could
> > > even hook a pivot table up to the Access database if you want. A pivot
> coming
> > > out of Access is good for at least about 650,000 records with reasonable
> > > performance.
> > >
> > > HTH
> > >
> > > "Philip" wrote:
> > >
> > > > Hi all,
> > > >
> > > > I have to open csv files with possibly more than 65000 rows of data in
> them,
> > > > and all the rows greater than 1 work*** have to be put on the next
> > > > ***...when that is full I have to add another *** and so on...
> > > >
> > > > Due to the limitations of Excel, I can't even tell the text Import
> > > > (Querytables) method to start at row 65000 as the textFileStartRow
> parameter
> > > > is supposed to be an integer (DOH !) - who came up with that one?
> > > >
> > > > So, what is the best option, open the files using OLEDB Text Provider
> in ADO
> > > > and load from recordset to read them in chunks of 65000 odd records,
> or is
> > > > there a better way?
> > > >
> > > > Or should I use the Textfile Import Method, and read it in in chunks
> of say
> > > > 30000 by setting the textFileStartRow property to current Value +
> 30000 for
> > > > each iteration until completed?
> > > >
> > > > thanks for any help or ideas or sympathy...
> > > >
> > > > Philip
>
>
>
- Next message: Mervyn Thomas: "Set Print Area programatically"
- Previous message: Chip Pearson: "Re: Control Panel"
- In reply to: Tom Ogilvy: "Re: Opening CSV file with 69000 + rows in Excel using VBA"
- Next in thread: Tom Ogilvy: "Re: Opening CSV file with 69000 + rows in Excel using VBA"
- Messages sorted by: [ date ] [ thread ]