Macro to import CSV and Combine two columns

UTcse09

New Member
Joined
Aug 12, 2011
Messages
5
My VBA skills are limited and the task given to me is beyond my skills, so any and all help will be appreciated.

I have several CSV files that I will need to import (can be one by one) with the number of columns changing each time. The information is divided by commas, and will need to be broken into cells. Once imported I need to take two columns that I will need to find by their header, and combine seperated by (-) into a third column denoted by another header. This will need to be done for all rows in the document. So for example if the file would be only three columns...

(A) (B) (C)

(1) a b a-b

Bolded is a random section of the information as it would look just opening in excel.
DevDbncOffDly.Deadband,Param.LoDevDbncOffDly.Input.DataType,

I am currently at work so I am doing this on a Windows Xp machine running Excel 2003.
 

Excel Facts

Excel Can Read to You
Customize Quick Access Toolbar. From All Commands, add Speak Cells or Speak Cells on Enter to QAT. Select cells. Press Speak Cells.
My boss has just told me he would also like a button that he can use to do this, so they don't have to keep opening the Macro editer.
 
Upvote 0

Forum statistics

Threads
1,224,548
Messages
6,179,445
Members
452,915
Latest member
hannnahheileen

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
Back
Top