We help IT Professionals succeed at work.

Titles for messagebox buttons

Derek Brown
Derek Brown asked
on
I want to name the buttons on a standard messagebox form. The form that appears when you code, Msgbox "Do you want an icecream?". vbYes/No

Can this be done or do I have to create a form manually
Comment
Watch Question

Sorry, you can't change it.  You can either create your own form or use an alternative message box addon.  If you're going for the latter, the two that I know are:


Ron
Dale FyeOwner, Dev-Soln LLC
Most Valuable Expert 2014
Top Expert 2010

Commented:
I usually just create my own unique form for most situations.  

If you want one that is flexible enough that it will resize itself and give you the option of one or more buttons, with personalized captions, it involves a lot of coding.

I've not looked at either of the references that Ron mentions above.
Most Valuable Expert 2015
Distinguished Expert 2018

Commented:
It's all here at EE:
Modern/Metro style message box and input box for Microsoft Access 2013

Browse to the paragraph: Localized captions

The download contains all the details, like:
' First and last Enum ButtonCaption.
Private Const FirstCaptionId    As Long = 800
Private Const LastCaptionId     As Long = 810

Open in new window

/gustav
Pretty snazzy, Gustav.  I wish you could make it work with older versions of Access.  I'd be all over this at work.  :-)

Ron
Most Valuable Expert 2015
Distinguished Expert 2018

Commented:
Thanks Ron.

It seems to run under Win 7 / Access 2010, but the upper corners are rounded.

/gustav

Author

Commented:
Disappointing news but obviously correct.

My thanks

Derek