Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
This may be of help
Sub SaveAllAndQuit() Application.ScreenUpdating = False Application.DisplayAlerts = False For Each wb In Application.Workbooks wb.Save Next wb Application.Quit End Sub -- Don Guillett Microsoft MVP Excel SalesAid Software "Sheldon" wrote in message ... Hello - I have a workbook that automatically imports tables from a database via code and is set with the Windows scheduler. When it's done importing, I want it to close the workbook and quit the application. At the end of the import code, I placed the following: ActiveWorkbook.Close Application.Quit It doesn't close and the application doesn't quit. How can I get it to do that? -- Sheldon |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Code does not work | Excel Programming | |||
Why QUIT method doesn't work after COPY method? | Excel Programming | |||
vba advice how 2get a input box to quit by entering the word quit+ 4 a msgbox to disp | Excel Programming | |||
vba code doesn't work | Excel Programming | |||
Excel don't quit in ASP.net Code | Excel Programming |