Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 10
Default macro for closing all Excel processes visible in TaskManager

Hi!
My VBScript is quite hefty and takes 1 hour+ to run. I found that if
other Excel processes exist, it further impedes it. Sometimes, by
mistake (if the script stops in the middle, etc.), Excel processes are
not closed completely.

I start the script by telling the user to close all Excel
applications. I'd like to ensure that no applications and/or
processes are present before i start the script.

Is there any way to do this?
Mechi
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 421
Default macro for closing all Excel processes visible in TaskManager

Hi Mechi,

Permit me to respond to the first
paragraph of your post:

=============
My VBScript is quite hefty and takes 1 hour+ to run. I found that if
other Excel processes exist, it further impedes it. Sometimes, by
mistake (if the script stops in the middle, etc.), Excel processes are
not closed completely
=============

With the appropriate use of error handles,
this situation should not normally occur;
the error handler should ensure a graceful
exit and may set the relevant object varables
to nothing.

I think that the second paragraph of your
post might, perhaps, more appropriately be
posted to one of the Windows newsgroups.


---
Regards.
Norman

wrote in message
...
Hi!
My VBScript is quite hefty and takes 1 hour+ to run. I found that if
other Excel processes exist, it further impedes it. Sometimes, by
mistake (if the script stops in the middle, etc.), Excel processes are
not closed completely.

I start the script by telling the user to close all Excel
applications. I'd like to ensure that no applications and/or
processes are present before i start the script.

Is there any way to do this?
Mechi


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
How many excel processes can you open? Stanley Excel Programming 3 July 17th 06 12:19 PM
VBAProject still visible after closing workbook Terry Excel Programming 3 May 29th 06 09:45 PM
Worksheet has to set to visible as it is not visible after saving and closing Excel by VB. Oscar Excel Programming 6 June 21st 05 10:39 PM
Schedule taskmanager via code? Steph[_3_] Excel Programming 1 March 25th 05 06:10 PM
Multiple Excel Processes MDW Excel Programming 2 September 7th 04 05:53 PM


All times are GMT +1. The time now is 04:42 PM.

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

About Us

"It's about Microsoft Excel"