MsgBox Function - How to Modify vbYesNo ?

wilderfan

Registered User.
Local time
Today, 03:55
Joined
Mar 3, 2008
Messages
172
Is it possible to modify the Yes / No buttons in the standard MsgBox?

Say you wanted to replace the standard "Yes" with something more specific. For example,

"Proceed with saving new record".


Is there an easy way to do this?
 
You gotta create your own form if you want something like that.
 
To my knowledge you can't modify the message box beyond the provided options. I would have the message text say "Do you want to proceed with saving new record?" so that the Yes/No button options provided obvious paths. If you want to provide buttons with your custom text on them, you'll need to create a form and use it in place of the message box.
 
That's a shame.

Guess I'll just have to make sure that he MsgBox question is worded carefully.
 
you can have okcancel instead of yesno, if you like.

you can also add vbdefaultbutton to make one option the default - normal the non-destructive option

the msgboxes do have nice features, like information or question symbols although it would be nice to have a parameter to set the yesno texts to something else (but unfortunately there definitely isnt - just yesno, or okcancel etc

so vbokcancel+vbdefaultbutton2+vbquestion
 

Users who are viewing this thread

Back
Top Bottom