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

[TABLE="width: 576"]
<colgroup><col span="9"></colgroup><tbody>[TR]
[TD]Filed 1[/TD]
[TD]Filed 2[/TD]
[TD]Filed 3[/TD]
[TD]Filed 4[/TD]
[TD]Filed 5[/TD]
[TD]Filed 6[/TD]
[TD]Filed 7[/TD]
[TD]Filed 8[/TD]
[TD]Filed 9[/TD]
[/TR]
[TR]
[TD]a[/TD]
[TD]b[/TD]
[TD]c[/TD]
[TD]d[/TD]
[TD]e[/TD]
[TD]f [/TD]
[TD]g[/TD]
[TD]h[/TD]
[TD]i[/TD]
[/TR]
[TR]
[TD="align: right"]1[/TD]
[TD="align: right"]2[/TD]
[TD="align: right"]3[/TD]
[TD="align: right"]4[/TD]
[TD="align: right"]5[/TD]
[TD="align: right"]6[/TD]
[TD="align: right"]7[/TD]
[TD="align: right"]8[/TD]
[TD="align: right"]9[/TD]
[/TR]
[TR]
[TD]ab1[/TD]
[TD]ab2[/TD]
[TD]ab3[/TD]
[TD]ab4[/TD]
[TD]ab5[/TD]
[TD]ab6[/TD]
[TD]ab7[/TD]
[TD]ab8[/TD]
[TD]ab9[/TD]
[/TR]
[TR]
[TD="colspan: 7"]Last line in the table TOTAL NUMBER OF CONSUMER RECORDS IS 000000000&Count of records[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]

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

Is there a shortcut key for strikethrough?
Ctrl+S is used for Save. Ctrl+5 is used for Strikethrough. Why Ctrl+5? When you use hashmarks to count |||| is 4, strike through to mean 5.

Forum statistics

Threads
1,224,828
Messages
6,181,204
Members
453,022
Latest member
RobertV1609

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