Dear all
I have a bunch of data in many different .CSV files that I am trying to combine into a single .xls file using a macro. Each .CSV file have a unique name representing the data source and consists of 3 columns: A) timestamp, B) logged/recorded value, and C) Unit (i.e. Volts)
Now to the part that gives me trouble: I would like to create a single .XLS file that contains all the data from the different .CSV files added in consecutive columns. And with the .CSV filename added to an inserted first/top row.
I have found and modified two different macros that will either combine the data into a single .XLS file (sheet) or inset a header for each dataset in the first row of a . XLS sheet, but I have no idea how to make both macros work together as one.
Here is my first macro that adds filenames above each dataset:
My next little macro that combines the .CSV files into a single .XLS file looks like this:
I sorry if my syntax if offensive or cluttered, but I hope it makes sense?
Best regards, Emil
Bookmarks