Hi All,
I have a loop which creates a new workbook (.xlsx), copies and pastes data into it and then saves as .xls, It seems to work fine for a while and then comes up with 'Document Not Saved' - Anyone got an ideas why?
Thanks in advance!
I have a loop which creates a new workbook (.xlsx), copies and pastes data into it and then saves as .xls, It seems to work fine for a while and then comes up with 'Document Not Saved' - Anyone got an ideas why?
Code:
ActiveWorkbook.SaveAs Filename:="D:\Data\Temp\VOB-II.xls", FileFormat:=56
and I have tried:
ActiveWorkbook.SaveAs Filename:="D:\Data\Temp\VOB-II.xls", FileFormat:=xlExcel8
Thanks in advance!