Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default how to stop a hidden session from Excel

I asked this in the Access forum but no solution.
I am opening Excel from Access. Problem is many times a hidden session
remains in the windows task manager - processes.
I checked my code (all explicit declaration), send it to the Access forum,
changed it as they suggested but nothing helps.
I tried different API calls from the web but they do not stop Excel.
How can I close this hidden session from Excel?


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 400
Default how to stop a hidden session from Excel

If, say, xl is your instance of Excel, you need to

xl.Quit

If you have open and unsaved workbooks, save the workbook first or if you do
not want to save it, set

xl.Axtiveworkbook.Saved = True
  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6,953
Default how to stop a hidden session from Excel

did you release all references to excel
did you use
Application.Quit

If you did the Application.Quit and still have the problem, then it is a
good bet you didn't release all references even if you think you have.

Break you code down to the minimal number of commands to open and close
Excel. Get that working, then start adding things back until you encounter
the problem. That will give an indication of where you have the problem.

--
Regards,
Tom Ogilvy


"Michel Peeters" wrote:

I asked this in the Access forum but no solution.
I am opening Excel from Access. Problem is many times a hidden session
remains in the windows task manager - processes.
I checked my code (all explicit declaration), send it to the Access forum,
changed it as they suggested but nothing helps.
I tried different API calls from the web but they do not stop Excel.
How can I close this hidden session from Excel?



  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default how to stop a hidden session from Excel

tks, but I tried did this already many times.
Is not there another way to kill excel ?
Michel
"Tom Ogilvy" wrote in message
...
did you release all references to excel
did you use
Application.Quit

If you did the Application.Quit and still have the problem, then it is a
good bet you didn't release all references even if you think you have.

Break you code down to the minimal number of commands to open and close
Excel. Get that working, then start adding things back until you
encounter
the problem. That will give an indication of where you have the problem.

--
Regards,
Tom Ogilvy


"Michel Peeters" wrote:

I asked this in the Access forum but no solution.
I am opening Excel from Access. Problem is many times a hidden session
remains in the windows task manager - processes.
I checked my code (all explicit declaration), send it to the Access
forum,
changed it as they suggested but nothing helps.
I tried different API calls from the web but they do not stop Excel.
How can I close this hidden session from Excel?





  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6,953
Default how to stop a hidden session from Excel

Trying and doing are two separate things. Maybe you don't have an unreleased
reference, but it is highly likely you do.

Are there ways to kill a process - sure, using the windows API.

http://www.experts-exchange.com/Prog..._20792368.html

--
Regards,
Tom Ogilvy


"Michel Peeters" wrote:

tks, but I tried did this already many times.
Is not there another way to kill excel ?
Michel
"Tom Ogilvy" wrote in message
...
did you release all references to excel
did you use
Application.Quit

If you did the Application.Quit and still have the problem, then it is a
good bet you didn't release all references even if you think you have.

Break you code down to the minimal number of commands to open and close
Excel. Get that working, then start adding things back until you
encounter
the problem. That will give an indication of where you have the problem.

--
Regards,
Tom Ogilvy


"Michel Peeters" wrote:

I asked this in the Access forum but no solution.
I am opening Excel from Access. Problem is many times a hidden session
remains in the windows task manager - processes.
I checked my code (all explicit declaration), send it to the Access
forum,
changed it as they suggested but nothing helps.
I tried different API calls from the web but they do not stop Excel.
How can I close this hidden session from Excel?








  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4,391
Default how to stop a hidden session from Excel

Michel,
You may have tried but you have not succeeded.
The fact that Excel is not being released indicates there is a reference
preventing it from doing so.
To kill the process everytime is like ramming your car into a wall whenever
you want to stop because you cannot be bothered to fix the car's breaks.

NickHK

"Michel Peeters" wrote in message
...
tks, but I tried did this already many times.
Is not there another way to kill excel ?
Michel
"Tom Ogilvy" wrote in message
...
did you release all references to excel
did you use
Application.Quit

If you did the Application.Quit and still have the problem, then it is a
good bet you didn't release all references even if you think you have.

Break you code down to the minimal number of commands to open and close
Excel. Get that working, then start adding things back until you
encounter
the problem. That will give an indication of where you have the

problem.

--
Regards,
Tom Ogilvy


"Michel Peeters" wrote:

I asked this in the Access forum but no solution.
I am opening Excel from Access. Problem is many times a hidden session
remains in the windows task manager - processes.
I checked my code (all explicit declaration), send it to the Access
forum,
changed it as they suggested but nothing helps.
I tried different API calls from the web but they do not stop Excel.
How can I close this hidden session from Excel?







Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Stop rows that i have hidden unhidding when i filter in excel APS Dave Excel Worksheet Functions 0 October 5th 07 11:06 AM
Startup and template locations in Citrix TS session and local session John Nurick Setting up and Configuration of Excel 2 September 21st 06 10:42 PM
Excel 2003 -Rows hidden. Scrolling unhides rows ! How do I stop th Excellent1975 Excel Discussion (Misc queries) 0 June 21st 06 08:01 PM
how to stop xl from showing hidden colomns madhu Excel Worksheet Functions 0 April 11th 06 04:16 PM
Start a new session when a session is already opend MD Excel Programming 1 December 17th 05 05:47 PM


All times are GMT +1. The time now is 12:37 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"