Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4
Default Change the default respond in method DIsplayAlert

when i use DisplayAlert = False, can i change the default respond to
other choice rather than the default choice by Excel?

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,302
Default Change the default respond in method DIsplayAlert

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   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,302
Default Change the default respond in method DIsplayAlert

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   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,302
Default Change the default respond in method DIsplayAlert


Hi Raizwai,

but see your earlier thread fot a possible solution.



Apologies, my error - please ignore!


---
Regards,
Norman


  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4
Default Change the default respond in method DIsplayAlert


Hi Norman,

Oh, sad to hear that, but thanks anyway^_^

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
can you change the default paste method? (paste values) David A Brown Excel Discussion (Misc queries) 3 December 18th 07 09:59 AM
What do you do when DisplayAlert does not work in VBA? M. Hussaini Excel Discussion (Misc queries) 3 February 2nd 07 02:04 AM
automatic links displayalert when you open workbook funkymonkUK[_107_] Excel Programming 2 March 18th 06 10:24 PM
Specify which method is default in custom class Bing Excel Programming 1 December 23rd 04 10:33 PM
application displayalert not working? Will Lam Excel Programming 2 May 3rd 04 05:16 PM


All times are GMT +1. The time now is 12:53 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"