473,396 Members | 2,010 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

EXCEL process doesn't close

Hi everyone,

I have a very strange problem.

If I open a .NET application from EXCEL using SHELL function, when I close
EXCEL, the EXCEL.EXE process remain active and I must close it by Task
manager.

If I open a normal application (I.E. Notepad.exe) in the same manner, I have
no problem.

Can somebody answer this question ?

Lorenzo Melato

Jul 21 '05 #1
2 2068
You can try to run Excel using the automation libraries provided by MSFT. You
run Excel using the ApplicationClass. To close the application you can use
the Quit method

"Lorenzo Melato" wrote:
Hi everyone,

I have a very strange problem.

If I open a .NET application from EXCEL using SHELL function, when I close
EXCEL, the EXCEL.EXE process remain active and I must close it by Task
manager.

If I open a normal application (I.E. Notepad.exe) in the same manner, I have
no problem.

Can somebody answer this question ?

Lorenzo Melato

Jul 21 '05 #2
Hi Alex,

The problem is not run EXCEL from a .NET application, but run a .NET
application from EXCEL.

If I run a .NET application from EXCEL and then I close it, if I close
EXCEL, EXCEL UI quit, but EXCEL.EXE remain active, and I must close it by
Task manager!

It's very strange behaviour...

Lorenzo Melato

"Alex Korchemniy" wrote:
You can try to run Excel using the automation libraries provided by MSFT. You
run Excel using the ApplicationClass. To close the application you can use
the Quit method

"Lorenzo Melato" wrote:
Hi everyone,

I have a very strange problem.

If I open a .NET application from EXCEL using SHELL function, when I close
EXCEL, the EXCEL.EXE process remain active and I must close it by Task
manager.

If I open a normal application (I.E. Notepad.exe) in the same manner, I have
no problem.

Can somebody answer this question ?

Lorenzo Melato

Jul 21 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Praveen K | last post by:
I have a problem in communicating between the C# and the Excel Interop objects. The problem is something as described below. I use Microsoft Office-XP PIA dll’s as these dll’s were been...
18
by: lgbjr | last post by:
Hi All, I have a VB.NET app that, among other things, writes data to Excel. I am having trouble getting the Excel process to terminate after I quit Excel. I found an article related to this...
16
by: LP | last post by:
Hello, I am trying to use .NET with Excel. I installed Office 2003 and selected ..NET programming suport option, so it installed all those PIA, as MS sugests. But I can not find a way to destroy...
2
by: Lorenzo Melato | last post by:
Hi everyone, I have a very strange problem. If I open a .NET application from EXCEL using SHELL function, when I close EXCEL, the EXCEL.EXE process remain active and I must close it by Task...
9
by: Doug Glancy | last post by:
I got the following code from Francesco Balena's site, for disposing of Com objects: Sub SetNothing(Of T)(ByRef obj As T) ' Dispose of the object if possible If obj IsNot Nothing AndAlso...
10
by: Hendri Adriaens | last post by:
Hi, I'm trying to automate the creation of an excel file via COM. I copied my code below. I read many articles about how to release the COM objects that I create. The code below runs just fine...
3
by: Chris | last post by:
I have a python script that is driving Excel and using the win32com module. However, upon program completion there's still an Excel.exe process running in the background that I must terminate...
1
by: fakehitswizard | last post by:
this is the correct way to close excel with C#. I've seen alot of other bogus posts ALL over the web that don't work, how frustrating. string savepath; bool foundPID; int ourPID = 0; int...
7
by: =?Utf-8?B?VGVycnkgSG9sbGFuZA==?= | last post by:
I have a vb.net app that opens an excel worksheet, reads data and then closes the sheet. Im noticing that the Excel process is still running after I have closed and disposed of my excel objects. ...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.