CSV import macro - Very Confused

bposaner

Board Regular
Joined
May 28, 2002
Messages
74
Very confused access newb and need help!! :oops:

I'm trying to write a macro to import csv files into a mdb.
I've searched the forum and found some examples, but im truly lost.

A sample of the csv file is below.
So currently I manually import the data with the following steps
1. 1st row contains field names.
2. skip first column (as its all blanks)
3. import all other cols, but with last column I import with a MDY format.
4. import into existing DB

All help would be great
Many Thanks

Code:
,ÿþComputerName,ObjectName,PerformanceCounterName,PerformanceInstanceName,SampledValue,TimeSampled
,LIV-CER-WA-P01,LogicalDisk,% Disk Time,_Total,2.24748899462693,07-01-2007 00:05
,LIV-CER-WA-P01,LogicalDisk,% Disk Time,_Total,4.15209282684479,07-01-2007 00:09
,LIV-CER-WA-P01,LogicalDisk,% Disk Time,_Total,4.08122189087369,07-01-2007 00:15
,LIV-CER-WA-P01,LogicalDisk,% Disk Time,_Total,2.59458327199961,07-01-2007 00:20
,LIV-CER-WA-P01,LogicalDisk,% Disk Time,_Total,1.66944401777505,07-01-2007 00:24
,LIV-CER-WA-P01,LogicalDisk,% Disk Time,_Total,2.04877977885725,07-01-2007 00:29

There is about 200,000 rows in each file!
 

Excel Facts

Convert text numbers to real numbers
Select a column containing text numbers. Press Alt+D E F to quickly convert text to numbers. Faster than "Convert to Number"

Forum statistics

Threads
1,181,722
Messages
5,931,673
Members
436,798
Latest member
spprtpplcm

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
Top