franksirvent
Programmer
Hi there
i am trying to close Excel Application after I have finished with the XLS sheet and I have saved, but it leaves the main Excel Window open (the sheet itself dissapears but I want the whole of Excel to close itself)
This is (part of) the code I am using...
Thanks in advance
objExcel.ActiveWorkbook.SaveAs FileName:=the_xlsfile, FileFormat:=xlNormal, Password:="", WriteResPassword:="", ReadOnlyRecommended:=False, CreateBackup:=False
objExcel.ActiveWindow.Close
i am trying to close Excel Application after I have finished with the XLS sheet and I have saved, but it leaves the main Excel Window open (the sheet itself dissapears but I want the whole of Excel to close itself)
This is (part of) the code I am using...
Thanks in advance
objExcel.ActiveWorkbook.SaveAs FileName:=the_xlsfile, FileFormat:=xlNormal, Password:="", WriteResPassword:="", ReadOnlyRecommended:=False, CreateBackup:=False
objExcel.ActiveWindow.Close