ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Quit Method do not kill excel process (https://www.excelbanter.com/excel-programming/288044-quit-method-do-not-kill-excel-process.html)

Rui Oliveira

Quit Method do not kill excel process
 
Hi,

I am using the Quit method to close the Excel
excelApp.Quit
Set excelApp = Nothing

The Excel is closed but the excel process still running.
What can I do to stop this process?

BTW: I tested with "Word" too, and with "word" works. The
Quit method close the word application and stop the word
process

Thanks,
Rui Oliveira


Tom Ogilvy

Quit Method do not kill excel process
 
You have probably created a non releasable reference to excel.

this can happen if you do something like

ActiveCell.Value = 3

You should fully qualify all references

excelApp.ActiveCell.Value = 3

sometimes it can be hard to find these unqualified references, such as when
the argument to a method uses a reference

excelApp.Activesheet.Range("A1:B30").Sort Key1:=Range("A1")

the Key:=Range("A1") is not fully qualified and would create a
non-releasable reference as an example.

--
Regards,
Tom Ogilvy


"Rui Oliveira" wrote in message
...
Hi,

I am using the Quit method to close the Excel
excelApp.Quit
Set excelApp = Nothing

The Excel is closed but the excel process still running.
What can I do to stop this process?

BTW: I tested with "Word" too, and with "word" works. The
Quit method close the word application and stop the word
process

Thanks,
Rui Oliveira




Rui Oliveira

Quit Method do not kill excel process
 
Thanks.
Rui

-----Original Message-----
You have probably created a non releasable reference to

excel.

this can happen if you do something like

ActiveCell.Value = 3

You should fully qualify all references

excelApp.ActiveCell.Value = 3

sometimes it can be hard to find these unqualified

references, such as when
the argument to a method uses a reference

excelApp.Activesheet.Range("A1:B30").Sort Key1:=Range

("A1")

the Key:=Range("A1") is not fully qualified and would

create a
non-releasable reference as an example.

--
Regards,
Tom Ogilvy


"Rui Oliveira"

wrote in message
...
Hi,

I am using the Quit method to close the Excel
excelApp.Quit
Set excelApp = Nothing

The Excel is closed but the excel process still running.
What can I do to stop this process?

BTW: I tested with "Word" too, and with "word" works.

The
Quit method close the word application and stop the word
process

Thanks,
Rui Oliveira



.



All times are GMT +1. The time now is 07:55 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com