Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I want to have a macro assigned to a button so that when the button is
pressed the current file is saved and then excel is exited. I tried: - Sub Closea() ThisWorkbook.Save Application.Select.Close End Sub But no good. Saving works but not close. Sub Closea() ThisWorkbook.Save ThisWorkbook.Close End Sub Will close the workbook but not excel itself. Any ideas? --- Message posted from http://www.ExcelForum.com/ |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Why excel close all files when I just want to close one files | Excel Discussion (Misc queries) | |||
why do all excel worksheets/workbooks close when I close one? | Excel Discussion (Misc queries) | |||
close button does not close | Excel Discussion (Misc queries) | |||
Excel shoud not close all active books when clicking close button | Excel Discussion (Misc queries) | |||
excel - Windows close button (x) should only close active workboo. | Setting up and Configuration of Excel |