Sub Macro1()
ChDir "D:\Test"
ActiveWorkbook.SaveAs Filename:="D:\Test\Macro.txt", FileFormat:=xlText, _
CreateBackup:=False
End Sub
****************************
如果樓主不明白的話.也可以用以這段代碼. 你會容易簡讀
Sub XlsToTxT()
Dim MYstr As String, i As Integer '定義屬性
Open "D:\test\test.txt" For Output As #1 '定義Output File位置
For i = 1 To 10 '由 Row 1to10
MYstr = Cells(i, 1) '輸出的內容 (或你要的東西,可在此開始自己定義吧~)
Print #1, MYstr
Next i
Close #1
End Sub