This copies the activesheet to a new workbook. Then you can save that as text
and not touch the existing workbook.
Since you didn't say how the filename should be determined, I'm always writing
to the desktop\somefolder\myfilenamehere.txt file.
The displayalerts = false says to not bother you with the "do you want to
overwrite the file" messages.
Option Explicit
Sub OtherTextFiles()
'Keyboard Shortcut: Ctrl+o
Dim myPath As String
Dim wks As Worksheet
'so you don't have to hardcode the path to desktop
myPath = CreateObject("WScript.Shell").SpecialFolders("DeskTop")
Set wks = ActiveSheet
wks.Copy 'copy to a new workbook, so original isn't touched.
With ActiveSheet.Parent
Application.DisplayAlerts = False
.SaveAs Filename:=myPath & "\somefolder\" & "myfilenamehere.txt", _
FileFormat:=xlText
Application.DisplayAlerts = True
.Close savechanges:=False 'close this new workbook without saving
End With
End Sub
And when you're verifying the output, open the .txt file in Notepad.
Here is the Macro: I want it to save to a specific folder on my desktop, but
it is saving to My Documents.
Sub OtherTextFiles()
'
' OtherTextFiles Macro
' Macro recorded 9/3/2009 by Debbie Powers
'
' Keyboard Shortcut: Ctrl+o
ActiveWorkbook.SaveAs _
FileFormat:=xlText
End Sub