Ending Excel

  • Thread starter Thread starter RobertHodges
  • Start date Start date
R

RobertHodges

I am running an Excel program with Scheduled Task. I start it wit
Auto_open and it runs all my macros fine. The problem come when I en
(Quit), my entire task complete fine and clears leaving the MS Exce
task (shell). I tried using the end task in the Scheduled Task to en
the excel and it ends the excel but memory error dialog box. An
suggestion on how to end or run Excel program on a scheduler would b
appreciate
 
I use the following

ActiveWindow.Close SaveChanges:=False


The spreadsheet has a addins that attactes to a API server, this may b
the problem
 
Hi Robert,
What your doing is closing the active workbook not the application. This
will leave an empty Excel window open.
There are other methods but you can add Application.Quit as the next line
and Excel should go away.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top