![]() |
Auto Close
I've been able to use the scheduler to start a worksheet and automatically
run a macro (thanks to Tom Ogilvy), however I still can't get the spreadsheet and Excel to close and quit. What am I missing? Thanks again |
Auto Close
Hi buckle
ThisWorkbook.Close False ' save and close the file ThisWorkbook.Close True ' close the file without saving Application.Quit ' close Excel -- Regards Ron de Bruin (Win XP Pro SP-1 XL2002 SP-2) www.rondebruin.nl "buckle" wrote in message news:3f414bb9$1@nubby2.... I've been able to use the scheduler to start a worksheet and automatically run a macro (thanks to Tom Ogilvy), however I still can't get the spreadsheet and Excel to close and quit. What am I missing? Thanks again |
Auto Close
*shrug* Who knows?
Have you tried : Application.Quit? -- Greeting from the Gulf Coast! http://myweb.cableone.net/twodays "buckle" wrote in message news:3f414bb9$1@nubby2.... I've been able to use the scheduler to start a worksheet and automatically run a macro (thanks to Tom Ogilvy), however I still can't get the spreadsheet and Excel to close and quit. What am I missing? Thanks again |
Auto Close
Thanks Ron,
I inserted: ThisWorkbook.Close False Application.Quit - in the macro and the workbook closes, but Excel stays open? Do I need something more? Thanks again "Ron de Bruin" wrote in message ... Hi buckle ThisWorkbook.Close False ' save and close the file ThisWorkbook.Close True ' close the file without saving Application.Quit ' close Excel -- Regards Ron de Bruin (Win XP Pro SP-1 XL2002 SP-2) www.rondebruin.nl "buckle" wrote in message news:3f414bb9$1@nubby2.... I've been able to use the scheduler to start a worksheet and automatically run a macro (thanks to Tom Ogilvy), however I still can't get the spreadsheet and Excel to close and quit. What am I missing? Thanks again |
Auto Close
That's it! Thanks Ron.
"Ron de Bruin" wrote in message ... First Typo in the comments ThisWorkbook.Close False ' close the file without saving ThisWorkbook.Close True ' save and close the file Use this to close the workbook without saving ThisWorkbook.Saved = True Application.Quit And this if you want to save it first ThisWorkbook.Save Application.Quit -- Regards Ron de Bruin (Win XP Pro SP-1 XL2002 SP-2) www.rondebruin.nl "Ron de Bruin" wrote in message ... Hi buckle ThisWorkbook.Close False ' save and close the file ThisWorkbook.Close True ' close the file without saving Application.Quit ' close Excel -- Regards Ron de Bruin (Win XP Pro SP-1 XL2002 SP-2) www.rondebruin.nl |
All times are GMT +1. The time now is 07:15 PM. |
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com