Replace values in Notepad file from CSV/Excel

GreenBox

New Member
Joined
Jan 3, 2014
Messages
7
Hi All,

I need your help to develop a Macro which will help me to eradicate a continuous task...

I have output in CSV as below

CSV FILE

[TABLE="width: 608"]
<tbody>[TR]
[TD]Business Name[/TD]
[TD]Address 1[/TD]
[TD]City[/TD]
[TD]State[/TD]
[TD]Zip[/TD]
[TD]Phone[/TD]
[/TR]
[TR]
[TD]Tips & Toes Nail Salon[/TD]
[TD]9430 W 191st[/TD]
[TD]Mokena[/TD]
[TD]Illinois[/TD]
[TD]60448[/TD]
[TD] (708) 478-7420[/TD]
[/TR]
[TR]
[TD]L A Nails[/TD]
[TD]11322 Lincoln[/TD]
[TD]Mokena[/TD]
[TD]Illinois[/TD]
[TD]60423[/TD]
[TD] (815) 464-9445[/TD]
[/TR]
[TR]
[TD]Asia Nails[/TD]
[TD]19610 La Grange[/TD]
[TD]Mokena[/TD]
[TD]Illinois[/TD]
[TD]60448[/TD]
[TD] (708) 478-8590[/TD]
[/TR]
[TR]
[TD]Nails Palace & Spa[/TD]
[TD]19834 La Grange[/TD]
[TD]Mokena[/TD]
[TD]Illinois[/TD]
[TD]60448[/TD]
[TD] (708) 995-5529[/TD]
[/TR]
[TR]
[TD]Kal Nails Spa[/TD]
[TD]10148 W 191st t[/TD]
[TD]Mokena[/TD]
[TD]Illinois[/TD]
[TD]60448[/TD]
[TD] (708) 478-6285[/TD]
[/TR]
[TR]
[TD]Perfect Nails[/TD]
[TD]9500 W Lincoln[/TD]
[TD]Frankfor[/TD]
[TD]Illinois[/TD]
[TD]60423[/TD]
[TD] (815) 806-8789[/TD]
[/TR]
[TR]
[TD]Jen Nails[/TD]
[TD]2063 E Laraway[/TD]
[TD]Lenox[/TD]
[TD]Illinois[/TD]
[TD]60451[/TD]
[TD] (815) 462-1059[/TD]
[/TR]
[TR]
[TD]Classy Nails[/TD]
[TD]15784 S LaGrange[/TD]
[TD]Orland[/TD]
[TD]Illinois[/TD]
[TD]60462[/TD]
[TD] (708) 226-1212[/TD]
[/TR]
[TR]
[TD]Best One Massage[/TD]
[TD]16902 Oak Park[/TD]
[TD]Tinley[/TD]
[TD]Illinois[/TD]
[TD]60477[/TD]
[TD] (708) 532-3103[/TD]
[/TR]
[TR]
[TD]Magnificent Nails[/TD]
[TD]19133 Wolf Rd[/TD]
[TD]Mokena[/TD]
[TD]Illinois[/TD]
[TD]60448[/TD]
[TD] (708) 478-7210[/TD]
[/TR]
</tbody>[/TABLE]

I need the above data to be replaced (TEXT File) in the below BLUE highlighted areas

TEXT FILE

Business Name Address 1 City, State Zip
< website details will be placed>
Business Name
Address 1
City, State Zip
Phone

< website details will be placed>
< website details will be placed>
Business Name
< website details will be placed>
City
< website details will be placed>

The final output should be creation of 10 TEXT (.txt) files as per the record count in CSV file in the above Text Format.

Please reply me the possibilities...

Thanks for all your help.
 

Excel Facts

Format cells as date
Select range and press Ctrl+Shift+3 to format cells as date. (Shift 3 is the # sign which sort of looks like a small calendar).

Forum statistics

Threads
1,223,228
Messages
6,170,871
Members
452,363
Latest member
merico17

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