Hi All
I am trying to write some VBA that will export one sheet from my workbook as a CVF file. I can do this using:
ActiveWorkbook.SaveAs myFileName, xlCSV
...but this leaves me with the open document pointed at the new CSV file on disk. In an attempt to work around this, I tried storing the original path first and saving back to that location as a standard Excel workbook. This works, except the sheet I exported to CSV is now renamed (great 'feature'), thus breaking my macro!
Does anyone know of a cleaner way to do this (short of writing my own CSV generator, which seems a little excessive)? The existence of the Excel 2000 Programmatic Text Export Update on the MS Office site would seem to suggest that there might be a sensible programmatic interface to the export filters somewhere, but I can't find it...
Bookmarks