Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
exit from excel?
Try:
Application.Quit Mark J wrote: how do i exit out of excel after running following code? Private Sub Workbook_BeforeClose(Cancel As Boolean) Worksheets("WEDPg1").Select Application.Run ("HistClient.xla!mnuConvertSheet") Worksheets("WEDPg2").Select Application.Run ("HistClient.xla!mnuConvertSheet") Worksheets("WEDPg3").Select Application.Run ("HistClient.xla!mnuConvertSheet") Worksheets("WEDPg4").Select Application.Run ("HistClient.xla!mnuConvertSheet") Worksheets("WEDPg5").Select Application.Run ("HistClient.xla!mnuConvertSheet") Worksheets("WEDPg6").Select Application.Run ("HistClient.xla!mnuConvertSheet") Worksheets("WEDPg7").Select Application.Run ("HistClient.xla!mnuConvertSheet") DDate = Format(Now() - 1, "mmddyyyy") ActiveWorkbook.SaveAs Filename:="" & DDate & ".xls" ActiveWorkbook.Close |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Excel 07 won't exit | Setting up and Configuration of Excel | |||
exit excel within vba | Excel Programming | |||
exit excel | Excel Discussion (Misc queries) | |||
If a called sub exit, how to the caller exit right away? | Excel Programming | |||
Close and Exit Excel | Excel Programming |