For the past 3+ years, I have successfully closed XL automation processes with the following last 4 lines of code.
Now, the process won't close.
Any thoughts?
Thanks in advance.
Tom
PC, WinXPpro, Delphi 7:
TYPE
XLap : OLEvariant; // Original Code
...
BEGIN
XLap := CreateOleObject('Excel.Application');
...do stuff here...
// CLOSE PROCESS:
XLap.quit;
XLap:='';
XLap:=Unassigned;
FreeAndNil (XLap);
Now, the process won't close.
Any thoughts?
Thanks in advance.
Tom
PC, WinXPpro, Delphi 7:
TYPE
XLap : OLEvariant; // Original Code
...
BEGIN
XLap := CreateOleObject('Excel.Application');
...do stuff here...
// CLOSE PROCESS:
XLap.quit;
XLap:='';
XLap:=Unassigned;
FreeAndNil (XLap);