473,491 Members | 2,133 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

How to quit an excel object?

I type the following code to open/close an excel appz

Dim oExcel As Excel.Application
oExcel = new Excel.Application
....
....
...
If Not oExcel Is Nothing Then oExcel.Quit()
If Not oExcel Is Nothing Then oExcel = Nothing
It returns no error message and the application was shut down, however i
still can see it on taskbar and consume many memory

also is there any method to detect if the excel application is opened or
not.
I want to open the workbook directly is the excel application has been
opened.

Any advise?

Regards,
Norton
Nov 20 '05 #1
4 4340
Cor
Hi Norton,

I only have some links about this for you.

Office
http://support.microsoft.com/default...b;EN-US;311452

http://msdn.microsoft.com/office/

Pia Download
http://www.microsoft.com/downloads/d...displaylang=en
I hope this helps a little bit?

Cor
Nov 20 '05 #2
Cor
Hi Norton,

I only have some links about this for you.

Office
http://support.microsoft.com/default...b;EN-US;311452

http://msdn.microsoft.com/office/

Pia Download
http://www.microsoft.com/downloads/d...displaylang=en
I hope this helps a little bit?

Cor
Nov 20 '05 #3
Thx Cor.

I traced the problem and i observed that i need to release all Excel relatd
object become run the Excel Object. Like sheet object and workbook object

Again, thx for your help
"Norton" <no********@hotmail.com> wrote in message
news:uG**************@TK2MSFTNGP09.phx.gbl...
I type the following code to open/close an excel appz

Dim oExcel As Excel.Application
oExcel = new Excel.Application
...
...
..
If Not oExcel Is Nothing Then oExcel.Quit()
If Not oExcel Is Nothing Then oExcel = Nothing
It returns no error message and the application was shut down, however i
still can see it on taskbar and consume many memory

also is there any method to detect if the excel application is opened or
not.
I want to open the workbook directly is the excel application has been
opened.

Any advise?

Regards,
Norton

Nov 20 '05 #4
Thx Cor.

I traced the problem and i observed that i need to release all Excel relatd
object become run the Excel Object. Like sheet object and workbook object

Again, thx for your help
"Norton" <no********@hotmail.com> wrote in message
news:uG**************@TK2MSFTNGP09.phx.gbl...
I type the following code to open/close an excel appz

Dim oExcel As Excel.Application
oExcel = new Excel.Application
...
...
..
If Not oExcel Is Nothing Then oExcel.Quit()
If Not oExcel Is Nothing Then oExcel = Nothing
It returns no error message and the application was shut down, however i
still can see it on taskbar and consume many memory

also is there any method to detect if the excel application is opened or
not.
I want to open the workbook directly is the excel application has been
opened.

Any advise?

Regards,
Norton

Nov 20 '05 #5

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

Similar topics

2
5231
by: Jim | last post by:
OK, now I'm really stumped. I have a ASP.NET w/ C# application that is using Excel XP to do automation. Everything works just great, but Excel stays resident in memory after I try to .Quit(). I...
3
8633
by: deko | last post by:
This code runs okay, but I cannot quit Excel. I've read that this may be due to the way I reference the object variables, but I don't know how else I would reference them. How do I get Excel to...
8
25953
by: ChrisBowringGG | last post by:
When you use Application.Quit() on an Excel application, there can still be an instance of Excel running, as seen in Task Manager. You can try following the advice on MSDN: ...
7
2413
by: Claudio Benghi | last post by:
Hello World, I've found a problem regarding Interop on Excel 2000. Here's KB article where the problem should be discussed: http://support.microsoft.com/default.aspx?scid=kb;EN-US;317109 ...
2
307
by: Norton | last post by:
I type the following code to open/close an excel appz Dim oExcel As Excel.Application oExcel = new Excel.Application .... .... ... If Not oExcel Is Nothing Then oExcel.Quit() If Not oExcel...
1
1074
by: Henry Padilla | last post by:
I have a class that has a member variable for the Excel application object. I use the object to open a file and do a Workbooks(1).SaveAs () I set Workbooks(1).Saved = True Then I do...
5
2647
by: Tim Frawley | last post by:
I created a .NET Com Class object for use in ASP reports to export database results directly to Excel. I have it all working just find but I cannot get the Excel process to go away after the job...
4
2167
by: sherifffruitfly | last post by:
Hi, I load the contents of an excel sheet into a dataset via the excel object library (couldn't get the #$%#$^ oledb/ado route to work - #^$%&^%$ connection strings... grrr.... ) Anyway,...
1
6942
by: raul15791 | last post by:
Hi, I'm new to C#. I'm writing a program that open a new excel file, write into it and lastly close the file. But the program is that there will be a orphaned process named EXCEL.EXE left on the...
0
6978
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
7154
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
1
6858
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
5451
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,...
0
3086
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3076
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1392
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
633
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
280
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.