Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Thanks for any help. I am running a macro that saves all workbooks and then
does application.quit. Excel opens and closes the VisualBasic window. Since others will be using this macro, I wish to elimanate this opening/closing. Thanks for the hlep. |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]() You should always post YOUR macro for comments. Try this Sub CLOSE_ALL() Application.ScreenUpdating = False Application.DisplayAlerts = False For Each w In Application.Workbooks If w.Name < ThisWorkbook.Name Then w.Save w.Close End If Next w ThisWorkbook.Save Application.Quit End Sub -- Don Guillett SalesAid Software "OlieH" wrote in message ... Thanks for any help. I am running a macro that saves all workbooks and then does application.quit. Excel opens and closes the VisualBasic window. Since others will be using this macro, I wish to elimanate this opening/closing. Thanks for the hlep. |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Don, thanks for the help. Your macro worked for a couple of days but now the
Application.DisplayAlerts will not reset to False. What have I done to cause this? Thanks again for your help. OlieH "Don Guillett" wrote: You should always post YOUR macro for comments. Try this Sub CLOSE_ALL() Application.ScreenUpdating = False Application.DisplayAlerts = False For Each w In Application.Workbooks If w.Name < ThisWorkbook.Name Then w.Save w.Close End If Next w ThisWorkbook.Save Application.Quit End Sub -- Don Guillett SalesAid Software "OlieH" wrote in message ... Thanks for any help. I am running a macro that saves all workbooks and then does application.quit. Excel opens and closes the VisualBasic window. Since others will be using this macro, I wish to elimanate this opening/closing. Thanks for the hlep. |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Application.Quit | Excel Programming | |||
difference application.quit & application.close | Excel Programming | |||
macro to close excel application other than application.quit | Excel Programming | |||
Application.quit | Excel Programming | |||
application.quit will not shut off application | Excel Programming |