I am able to create .xlw files that will open with Microsoft Excel, but is there a way to turn that into a .csv file? The code I use to create the .xlw file is as follows:
Set oExcel = CreateObject("Excel.Application")
Set oBook = oExcel.Workbooks.Add
Set oSheet = oBook.Worksheets(1)
oSheet.Range("A1").Value = LastName.Text & "_" & FirstName.Text & "_" & Last4.Text
oSheet.Range("B1").Value = Phase.Text
oSheet.Range("C1").Value = DS.Text
oSheet.Range("D1").Value = RoomNumber.Text
oSheet.Range("E1").Value = "Destination"
oSheet.Range("F1").Value = "LB1"
oSheet.Range("G1").Value = "LB2"
oSheet.Range("H1").Value = "DTOUT"
oSheet.Range("I1").Value = "DTIN"
oBook.SaveAs "C:\Documents and Settings\Brooks\Desktop\Duh\" & LastName.Text & "_" & FirstName.Text
oExcel.Quit
As I said, this will create a .xlw file with no problem that will run fine in Excel, but it would be a lot easier to modify later in the program if it were a csv file. Any Suggestions?
Thanks in advance!