excel to text, default tab delimited text file

nischalinn

New Member
Joined
Jul 14, 2014
Messages
11
When I converted excel to text file via VB code, the default text file is tab delimited. Why is it so?


I've done:


Code:
Sub ConvertToText()
    ActiveWorkbook.SaveAs Filename:="E:\EXCEL\TEST.txt", FileFormat:=xlCurrentPlatformText, CreateBackup:=False
End Sub

Can I change the default delimition to pipe, how can I do this? How can I make an excel file to pipe delimited text file in default?
Please can anyone explain that to me.

Thanks a lot!!!
 

Excel Facts

What does custom number format of ;;; mean?
Three semi-colons will hide the value in the cell. Although most people use white font instead.
Hi Br0ck,

I read the link and found that this tutorial was for converting PIPE delimited CSV file to EXCEL file.
But my problem is to convert EXCEL file to PIPE delimited text file. Though I followed the steps given in the tutorial, but it did not work.

Please suggest how to solve this problem.

Please do response on this post.

Thank You!!!
 
Upvote 0

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