Hi All,
This is my first post and I really appreciate any help I can get!
I'm trying to save the current sheet into a .csv file before saving & closing the current workbook.
The code I have at the moment is:
Const xlCSV = 6
Set objExcel = CreateObject("Excel.Application")
objExcel.DisplayAlerts = FALSE
objExcel.Visible = TRUE
Set objWorksheet = ActiveSheet
objWorksheet.SaveAs "c:\Users\Public\test.csv", xlCSV
ActiveWorkbook.Close TRUE
This doesn't seem to work at all! Please can you help?
Tim
Bookmarks