If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > PC based Database Applications > Microsoft Excel > killing Excel 2002 silently?

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 05-25-04, 20:26
normwheatley normwheatley is offline
Registered User
 
Join Date: May 2004
Posts: 4
killing Excel 2002 silently?

Hi,

I have a batch file that queries a database and creates a flat file.
I want to start Excel, make a graph of the data and save it as an html file. I then want to get out of Excel.

I want to do this automatically twice daily (eg at midnight).

I use Scheduled tasks and a macro to start Excel and create the graph. But Excel won't quit so I've set the ask Scheduler to stop Excel after 1 minute.

Here's the problem ... I get a message saying that Excel has terminated unexpectedly and would I like to send an Error Report to Microsoft?!

I cannot turn this message off no matter what Service I stop!

Does anyone have any ideas how I might accomplish my aim?

thanks very much
Norm
Reply With Quote
  #2 (permalink)  
Old 06-09-04, 16:47
Smitty Smitty is offline
Registered User
 
Join Date: Dec 2003
Location: San Diego, CA
Posts: 153
Have you tried Application.Quit?

Smitty

EDIT: Welcome to the Board!
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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