Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi,
I am using ActiveWorkbook.Close to close my spreadsheets but I woul also like to terminate Excel too. I have tried Application.Quit but this did nothing and Excel was stil open. Does anyone know of a way to close Excel from a macro and can the provide and example? Thank -- Message posted from http://www.ExcelForum.com |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Try not closing the workbooks before using it.
-- HTH Bob Phillips ... looking out across Poole Harbour to the Purbecks (remove nothere from the email address if mailing direct) "andycharger " wrote in message ... Hi, I am using ActiveWorkbook.Close to close my spreadsheets but I would also like to terminate Excel too. I have tried Application.Quit but this did nothing and Excel was still open. Does anyone know of a way to close Excel from a macro and can they provide and example? Thanks --- Message posted from http://www.ExcelForum.com/ |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
this works for me to save all and close. Modify to suit.
Sub CLOSE_ALL() Application.ScreenUpdating = False Application.DisplayAlerts = False For Each w In Workbooks w.Save Next Application.Quit End Sub -- Don Guillett SalesAid Software "andycharger " wrote in message ... Hi, I am using ActiveWorkbook.Close to close my spreadsheets but I would also like to terminate Excel too. I have tried Application.Quit but this did nothing and Excel was still open. Does anyone know of a way to close Excel from a macro and can they provide and example? Thanks --- Message posted from http://www.ExcelForum.com/ |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Checking Column Status on closing excel - Macro Needed | Excel Discussion (Misc queries) | |||
Closing Excel with Personal Macro Workbook | Excel Discussion (Misc queries) | |||
CLosing Excel 2007 with personal macro workbook | Excel Discussion (Misc queries) | |||
closing excel after closing a workbook | Excel Programming | |||
Problem in closing Excel App with translated excel macro | Excel Programming |