Excel VBA Save as tab delimited file
I solved it! Since the quotes disappear when you save it manually as a delimited file but not when you use
ActiveWorkbook.SaveAs ActiveWorkbook.path & "\" & filename,
FileFormat:=xlText, CreateBackup:=False
I just added another save after the above one, but this time using the sendkey strokes to mimick the manual method.
ActiveWorkbook.SaveAs fil, FileFormat:= _ xlText
SendKeys "^{F4}"
SendKeys "{ENTER}"
SendKeys "{ENTER}"