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

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).
Hi Br0ck,

Thank you very much for your reply.

I'll try the solution and post the result.

Thanks a lot!!!
 
Upvote 0
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,216,116
Messages
6,128,931
Members
449,480
Latest member
yesitisasport

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