Macro For Saving As .txt

J

jshendel

I want to have a macro in my Personal Macro Workbook where I can save a .xls
file as a .txt (tab-delimited) where I can type in a new name. Please help.
Thanks,
Josh
 
B

Bob Umlas, Excel MVP

Sub SaveAsTxt()
Dim Ans As String
Ans = Application.GetSaveAsFilename("", "text files, *.Txt")
If Ans <> "False" Then ActiveWorkbook.SaveAs Ans
End Sub
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top