Adding Buttons to MsgBox and vbDefaultButton4

G

George Lee

Can you add your own buttons to a Msgbox?

vbDefaultButton4 sets the default to the fourth button but no Msgbox has
four. I'd like to add one button if I could.
 
K

Karl E. Peterson

George said:
Can you add your own buttons to a Msgbox?

vbDefaultButton4 sets the default to the fourth button but no Msgbox
has four. I'd like to add one button if I could.

The generally accepted practice is that if you need a custom message box,
your best bet is to "roll yer own." There are numerous examples out there
on the web, and although most are probably done in Classic VB rather than
VBA the same principles would apply.
--
 
G

George Lee

I understand that is the generally accepted practice. However, I'd still like
to know how it's possible to add your own buttons. I could not find any
examples of my question on the Web.
 
K

Karl E. Peterson

George said:
I understand that is the generally accepted practice. However, I'd
still like to know how it's possible to add your own buttons. I could
not find any examples of my question on the Web.

That's a good indication. <g>

Sorry, no, it's really not possible. I have no idea what the thinking was
for vbDefaultButton4. Interesting question, really.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top