View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.programming
Don Guillett[_4_] Don Guillett[_4_] is offline
external usenet poster
 
Posts: 2,337
Default quit excel with macro

You should always post your code for comments.
If you close the workbook where the application.quit is how can it work?
could be the problem.

--
Don Guillett
SalesAid Software
Granite Shoals, TX

"betty" wrote in message
...
I have a workbook with public macro to open another
workbook; paste a value; close the second workbook; write
to a database; save the first workbook; quit excel. I
have tried the appication.quit without success. Is there
another command? Any suggestion is appreciated.