![]() |
![]() |
|
|||||||
| Excel Questions All Excel/VBA questions - formulas, macros, pivot tables, general help, etc. Please post to this forum in English only. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
MrExcel MVP
Join Date: Feb 2002
Location: Christchurch New Zealand
Posts: 1,030
|
Private Sub Workbook_BeforeSave(ByVal SaveAsUI As Boolean, Cancel As Boolean)
MsgBox "Can Not Save Workbook Will Now Close!", vbOKOnly ActiveWorkbook.Close End Sub |
|
|
|
|
|
#2 |
|
Board Regular
Join Date: Apr 2002
Location: Kissimmee, Florida
Posts: 384
|
Kool...result 1 Crashed Excel...
However I did also manage to find a way... Add in change and then Send to as Attachment When I opened the attachment from the mail It included the Autoclose on save.
__________________
Hope This Helps. Sean. Digest of Homes WinXP, XL XP |
|
|
|
|
|
#3 |
|
MrExcel MVP
Join Date: Feb 2002
Location: Christchurch New Zealand
Posts: 1,030
|
yeah it can't handle it in excel xp but it still saves!?!?!
|
|
|
|
|
|
#4 | |
|
MrExcel MVP
Join Date: Feb 2002
Location: Monterrey, Mexico
Posts: 1,433
|
Quote:
Code:
Private Sub Workbook_BeforeSave(ByVal SaveAsUI As Boolean, Cancel As Boolean) MsgBox "Can Not Save Workbook Will Now Close!", vbOKOnly cancel=true application.displayalerts=false ActiveWorkbook.Close end sub Hope this helps. Kind regards, Al. [ This Message was edited by: Al Chara on 2002-04-16 15:47 ] [ This Message was edited by: Al Chara on 2002-04-16 15:50 ] |
|
|
|
|
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|