Greg has attended:
Excel VBA Intro Intermediate course
Excel VBA Intro Intermediate course
MS Excel
How can I convert an Excel Worksheet list of comma separated values to a tab delimited version?
RE: MS Excel
Hi Greg
The code below opens an existing (.csv) document in Excel and then saves it as a new (.txt) document
Sub ConvertWorkbook()
Workbooks.Open Filename:= "D:\Documents and Settings\TrainerDev07\Desktop\Sales 2004.csv"
ActiveWorkbook.SaveAs Filename:= "D:\Documents and Settings\TrainerDev07\Desktop\TXTSales 2004.txt", _
FileFormat :=xlText, CreateBackup:=False
End Sub
Hope this helps
Carlos