Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]() Hi there, i've made an Exit button. I want it to exit excel when clicked, but all i managed to do is close the workbook. Is there any way at all to close Excel? or is the furthest it goes is closing a workbook? -- Bonbon ------------------------------------------------------------------------ Bonbon's Profile: http://www.excelforum.com/member.php...o&userid=31866 View this thread: http://www.excelforum.com/showthread...hreadid=532192 |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
For Each w In Application.Workbooks
w.Save Next w Application.Quit I think that does it, havent tested it yet though!,, might be better to do the save first and then time delay the quit as it will be real slow on a big workbook HTH Duncan |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]() Duncan Wrote: For Each w In Application.Workbooks w.Save Next w Application.Quit I think that does it, havent tested it yet though!,, might be better to do the save first and then time delay the quit as it will be real slow on a big workbook HTH Duncan Hi thanks for both the replies! But Duncan i dont understand the 'w' is it workbook or something? -- Bonbon ------------------------------------------------------------------------ Bonbon's Profile: http://www.excelforum.com/member.php...o&userid=31866 View this thread: http://www.excelforum.com/showthread...hreadid=532192 |
#4
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Yep, exactly right, its just to save each workbook open or else it will
pop up and say "do you want to save" Duncan |
#5
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]() Ah thank you, it worked great! :) -- Bonbon ------------------------------------------------------------------------ Bonbon's Profile: http://www.excelforum.com/member.php...o&userid=31866 View this thread: http://www.excelforum.com/showthread...hreadid=532192 |
#6
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi Bonbon
use Application.Quit method to close excel Thanks Xcelion "Bonbon" wrote: Hi there, i've made an Exit button. I want it to exit excel when clicked, but all i managed to do is close the workbook. Is there any way at all to close Excel? or is the furthest it goes is closing a workbook? -- Bonbon ------------------------------------------------------------------------ Bonbon's Profile: http://www.excelforum.com/member.php...o&userid=31866 View this thread: http://www.excelforum.com/showthread...hreadid=532192 |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
How to code on Macro on saving and closing a file? | Excel Worksheet Functions | |||
Problems closing Excel correctly by code | Excel Programming | |||
Closing excel with a macro | Excel Programming | |||
Closing Excel down with a macro? | Excel Programming | |||
Excel code to Wait until Word finishes printing before closing | Excel Programming |