Using VB (actually VB6) I am opening a tab deliminated .TAB file with Excel 2007, making a few small changes and then attempting to save it as a .xlsx file.
The code looks like
XLWorkBookName = xlApplication.Workbooks.Open(filename.TAB)
...
XLWorkBookName.SaveAs filename.xlsx, xlWorkBookNormal
The use of the xlWorkBookNormal file format parameter should, I think, cause it to save as a .xlsx file. But when I try to open the saved file with Excel 2007, am I told that the file name conflicts with the file format, and it won't open. Any ideas anyone?
The code looks like
XLWorkBookName = xlApplication.Workbooks.Open(filename.TAB)
...
XLWorkBookName.SaveAs filename.xlsx, xlWorkBookNormal
The use of the xlWorkBookNormal file format parameter should, I think, cause it to save as a .xlsx file. But when I try to open the saved file with Excel 2007, am I told that the file name conflicts with the file format, and it won't open. Any ideas anyone?