Selectively merging Columns from two notepads into one using VBA

Kirti Arora

New Member
Joined
Aug 31, 2017
Messages
1
Hi All,
I have 2 Notepads files having data .I want to merge some of the columns selectively from them to one single notepad. Also, I wanted to merge column values into one and then write that to the output file.
FName,LName,AccountNo,ChasisNo,DrivingLicenseNo,PolicyNo,RegNo1,RegNo2---Columns of 1st notepad
File Size is 10k
Other desired columns are
DOB , SysDate etc. ---These can be taken from file of size 1k(file is basically an existing output file, as these values doesn't change ,so can be copied from there)
The order of the columns of final notepad should be:
FName, LName,DOB, RegNo(merged one),DrivingLicenseNo,PolicyNo,ChasisNo,.etc(size required is 1k)
Can somebody provide some solution for the same. I am very new to VBA.
Thanks in advance.
 

Excel Facts

Which lookup functions find a value equal or greater than the lookup value?
MATCH uses -1 to find larger value (lookup table must be sorted ZA). XLOOKUP uses 1 to find values greater and does not need to be sorted.

Forum statistics

Threads
1,224,823
Messages
6,181,181
Members
453,022
Latest member
Mohamed Magdi Tawfiq Emam

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