Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]() i need a code that if you press a button that the excel file save itself and then closes. th -- tomro ----------------------------------------------------------------------- tomro1's Profile: http://www.excelforum.com/member.php...fo&userid=3508 View this thread: http://www.excelforum.com/showthread.php?threadid=55083 |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Try the following procedure.
Sub SaveAllAndQuit() Dim WB As Workbook For Each WB In Workbooks WB.Save Next WB Application.Quit End Sub Create a new command button and assign this macro to it. -- Cordially, Chip Pearson Microsoft MVP - Excel Pearson Software Consulting, LLC www.cpearson.com "tomro1" wrote in message ... i need a code that if you press a button that the excel file saves itself and then closes. thx -- tomro1 ------------------------------------------------------------------------ tomro1's Profile: http://www.excelforum.com/member.php...o&userid=35081 View this thread: http://www.excelforum.com/showthread...hreadid=550836 |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]() works like a charm thanks : -- tomro ----------------------------------------------------------------------- tomro1's Profile: http://www.excelforum.com/member.php...fo&userid=3508 View this thread: http://www.excelforum.com/showthread.php?threadid=55083 |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
when press the close button in printpreview | Excel Programming | |||
press button via vb and excel | Excel Programming | |||
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 | |||
Triggering an Excel macro on press of SAVE | Excel Programming |