On Wed, 6 Apr 2011 07:08:53 -0700 (PDT), kidkosmo <(E-Mail Removed)> wrote:
>Hi, Gang,
>
>Hoping someone here can help point me in a direction. I get a series
>of reports from Webex that I import into an Access database. The
>reports export as csv files which are usually easy enough to import;
>however, they include report headers on the file I don't want to
>import, so I want to import starting at cell B5. As such, I need to
>first convert that file to an Excel file since the transfertext method
>can't specify cell ranges. Just changing the file extension to xls
>doesn't quite work since it still sees the file as unicode text so I
>got into each file, do a save as to excel. There's gotta be a better
>way.
>
>I've already got VBA to cycle through the directory to import the
>files, but does anyone know of a way to cycle through those csv files
>and automatically convert them to xls before importing? I've found
>plenty of references to converting xls to csv, but not the other way
>around.
>
>Below is an excerpt of the file format I get. It's the first four
>lines I want to ignore. Any help is appreciated!!
>
>All sessions in Eastern Daylight Time (New York, GMT-04:00)
>Session detail for 'Client Basic Care360 Labs & MedsTraining':
>*Attention to Duration ratio: Attentiveness based on total duration of
>the session.
>**Attention to Attendance ratio: Attentiveness based on how long
>participant was in the session.
>Participant Name Email
Stefan's two step approach is certainly one option; another would be to not
use TransferText at all, but instead use the VBA file-handling code (see the
VBA help for OpenTextFile, TextStream, etc.) to open the file and parse it
yourself.
--
John W. Vinson [MVP]
Microsoft's replacements for these newsgroups:
http://social.msdn.microsoft.com/For...-US/accessdev/
http://social.answers.microsoft.com/.../en-US/addbuz/
and see also
http://www.utteraccess.com