Save as Tab delimited TXT

CaptainCsaba

Board Regular
Joined
Dec 8, 2017
Messages
78
Hey!
I just have a quick question. I have a really short code to save the current file with the sheet name and an added word to it a a text file. It is a regular text file not a "tab delimited one". How can I save it as a tab delimited one?

Code:
 ActiveWorkbook.SaveAs (ActiveSheet.Name & " Done" & ".txt")

Thanks for the help!
 

Excel Facts

Quick Sum
Select a range of cells. The total appears in bottom right of Excel screen. Right-click total to add Max, Min, Count, Average.
The Macro recorder will give you the code that you need.
Just turn it on, and save the file as the "Text (Tab delimited)" option.

So it should look something like this:
Code:
ActiveWorkbook.SaveAs ActiveSheet.Name & " Done.txt", _ 
    [COLOR=#ff0000]FileFormat:=xlText[/COLOR], CreateBackup:=False
 
Upvote 0

Forum statistics

Threads
1,223,227
Messages
6,170,853
Members
452,361
Latest member
d3ad3y3

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