Help! create a PSV file using macros

mrexcel1716

New Member
Joined
Nov 16, 2009
Messages
15
dear Excel guru's

I have small requirement, i need to create a PSV file ( Pipe seperated file). looking for a macro which will generate Output with PSV

Filed 1Filed 2Filed 3Filed 4Filed 5Filed 6Filed 7Filed 8Filed 9
abcdef ghi
123456789
ab1ab2ab3ab4ab5ab6ab7ab8ab9
Last line in the table TOTAL NUMBER OF CONSUMER RECORDS IS 000000000&Count of records

<colgroup><col span="9"></colgroup><tbody>
</tbody>

Output should be like
Filed 1|Filed 2|Filed 3|Filed 4|Filed 5|Filed 6|Filed 7|Filed 8|Filed 9|
a|b|c|d|e|f |g|h|i|
1|2|3|4|5|6|7|8|9|
ab1|ab2|ab3|ab4|ab5|ab6|ab7|ab8|ab9|
TOTAL NUMBER OF CONSUMER RECORDS IS |0000000003|
 

Excel Facts

How can you automate Excel?
Press Alt+F11 from Windows Excel to open the Visual Basic for Applications (VBA) editor.

Forum statistics

Threads
1,216,114
Messages
6,128,910
Members
449,478
Latest member
Davenil

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