Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
when i use DisplayAlert = False, can i change the default respond to
other choice rather than the default choice by Excel? |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi Raizwai,
I do not beleive that you can change the default alerts. You could however add your own messages and responses, e.g.: '============= Public Sub Tester001() Dim WB As Workbook Dim res As VbMsgBoxResult Set WB = Workbooks("YourBook.xls") Application.DisplayAlerts = False If Not WB.Saved Then res = MsgBox(Prompt:="This File includes changes " _ & "which have not been saved. Do you " _ & "wish to save these changes?", _ Buttons:=vbYesNo + vbCritical, _ Title:="To Save Or Not To Save?") End If Workbooks("Cartella1.xls").Close Savechanges:=res = vbYes Application.DisplayAlerts = True End Sub '<<============= --- Regards, Norman wrote in message oups.com... when i use DisplayAlert = False, can i change the default respond to other choice rather than the default choice by Excel? |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi Raizwai,
I donot believe that you can cahange the defaul alert messages, but see your earlier thread fot a possible solution. --- Regards, Norman wrote in message oups.com... when i use DisplayAlert = False, can i change the default respond to other choice rather than the default choice by Excel? |
#4
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]() Hi Raizwai, but see your earlier thread fot a possible solution. Apologies, my error - please ignore! --- Regards, Norman |
#5
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]() Hi Norman, Oh, sad to hear that, but thanks anyway^_^ |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
can you change the default paste method? (paste values) | Excel Discussion (Misc queries) | |||
What do you do when DisplayAlert does not work in VBA? | Excel Discussion (Misc queries) | |||
automatic links displayalert when you open workbook | Excel Programming | |||
Specify which method is default in custom class | Excel Programming | |||
application displayalert not working? | Excel Programming |