Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I thought is was good until I actually started playing with th
workbook. The result are not what I'm trying to achieve. If I clic yes on the save dialog box it brings up excels save dialog box. If click on no or cancel it works fine The code I have been working with is: Private Sub CommandButton3_Click() ' Tried using Application.DisplayAlerts = False Application.ScreenUpdating = False With ActiveWorkbook .RunAutoMacros xlAutoClose .Close End With End Sub I'm trying to incorporate my Workbook_BeforeClose code, then exi excel. I was also wondering if there was a way to close excel whe closing the workbook. I have read in the newsgroup to us Application.Quit but like the rest I can't figure out how to apply it. If anyone has any suggestion, please reply ![]() Thanks Rocke -- Message posted from http://www.ExcelForum.com |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
CommandButton to open a Excel workbook | Excel Discussion (Misc queries) | |||
workbook before close | Excel Discussion (Misc queries) | |||
close only one workbook | New Users to Excel | |||
How can I close only 1 workbook when I have many open? | Excel Discussion (Misc queries) | |||
cannot close workbook | Excel Programming |