I am looking for my macro to save a new sheet that I created as a .txt file. this is the code that i still have.
Sub Move() ' ' Move Macro ' ' Keyboard Shortcut: Ctrl+m ' Sheets("Sheet1").Select Range("A1").Select Range(Selection, Selection.End(xlToRight)).Select Range(Selection, Selection.End(xlDown)).Select Selection.Copy Workbooks.Add ActiveSheet.Paste ActiveWorkbook.SaveAs Filename:="e:" & _ "HDR" + Format(Now(), "YYYYMMDDhhmmss") & ".txt" End Sub
This includes my macro. I am having problems with the last part, where it is saved as a .txt file.
I am currently getting a bunch of crap in my .txt file, here is an example,
"PK !!" - U {Š [Content_Types] .xml ¢ (ÌTÝNÂ0¾7-Þš € ‰ 1 † Á ... â ¥ PÚ3¶ÐμMOÁñöž • Ÿ¨ ".
Any help would be great.
source share