View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.programming
Jake Marx[_3_] Jake Marx[_3_] is offline
external usenet poster
 
Posts: 860
Default Associating a sound to a MsgBox ?

Hi Junkyard,

Junkyard Engineer wrote:
I have this msgbox asking yes/no question. How can I associate a
sound with it ?


Answer = MsgBox("Do you want to continue ?", vbYesNo + 256 +
vbQuestion, "ATTENTION")
If Answer = vbNo Then Exit Sub


You could use vbExclamation instead of vbQuestion - that will give the user
a beep. MS uses it in the "Save changes?" dialog in Excel.

--
Regards,

Jake Marx
MS MVP - Excel
www.longhead.com

[please keep replies in the newsgroup - email address unmonitored]