Quantcast
Viewing all articles
Browse latest Browse all 12

Access VBA code to import specific columns of excel csv

I would attempt that if the csv output was under my control. But it isn't This is an output from a different database and I have no control over the file format or columns generated.

I could use a VBA module in Excel to clean up some of the data, but it will not know the differences in columns as it is one .csv file that is Automatically generated from somewhere else.

I already run a VBA module to remove some excess text in a field which cuts the output file from 218MB to 31.6MB in size!

tmd63,

I would like to add besides isladogs52 comments.

Since you do not control the output format of the csv file, no amount of VBA coding will solve your problem.

If the event of changes happens, the source decided to output the CSV format, your code will not work anymore.

What appears to be, it seems like the output is a data dumping style from a person without experiences in Data Management. 

What you need to do is to get a standard Format output from the source. Only pick data/records that will be use by you.

This means that you'll have to schedule a work co-ordination from the source until the output is satisfactory.

If it's really a case of over 600 columns, you should be getting a Excel formatted output into Multiple Sheet as a Table each. Not into one Sheet.

If they can't do Excel, get them to split the CSV file into a single Table. One Table for each file.

Or you could set-up a Excel with queries built-in to get the data for them.

I hope it will give you some ideas. 


Viewing all articles
Browse latest Browse all 12

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>