Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
Default Response to a MsgBox
Excel 2003
I have a message box with Buttons:=vbYesNoCancel The default response (button with focus -- executed by <Enter) is "Yes". How do I change it so that the default response is "No"? There is no option for Buttons:=vbNoYesCancel There doesn't seem to be any explicit parameter that provides for the developer to select the default response???? |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
Default Response to a MsgBox
Try this:
MsgBox "Are you sure?", vbDefaultButton1 + vbOKCancel, "Default Option" MsgBox "Are you sure?", vbDefaultButton2 + vbOKCancel, "Default Option" or this: MsgBox "Are you sure?", vbDefaultButton1 + vbYesNoCancel, "Default Option" MsgBox "Are you sure?", vbDefaultButton2 + vbYesNoCancel, "Default Option" MsgBox "Are you sure?", vbDefaultButton3 + vbYesNoCancel, "Default Option" Cheers, KL "Fred Holmes" wrote in message ... Excel 2003 I have a message box with Buttons:=vbYesNoCancel The default response (button with focus -- executed by <Enter) is "Yes". How do I change it so that the default response is "No"? There is no option for Buttons:=vbNoYesCancel There doesn't seem to be any explicit parameter that provides for the developer to select the default response???? |
#3
Posted to microsoft.public.excel.programming
|
|||
|
|||
Default Response to a MsgBox
Hi Fred,
You can combine the Button parameters. MsgBox "test", vbYesNoCancel Or vbDefaultButton2 Cheers Andy Fred Holmes wrote: Excel 2003 I have a message box with Buttons:=vbYesNoCancel The default response (button with focus -- executed by <Enter) is "Yes". How do I change it so that the default response is "No"? There is no option for Buttons:=vbNoYesCancel There doesn't seem to be any explicit parameter that provides for the developer to select the default response???? -- Andy Pope, Microsoft MVP - Excel http://www.andypope.info |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
How do I transform a word response to a numeric response? | Excel Discussion (Misc queries) | |||
How do I set up a daily call out response response register? | Excel Worksheet Functions | |||
value response | Excel Discussion (Misc queries) | |||
can I get some help here? No response yet :) | Excel Worksheet Functions | |||
Response | Excel Programming |