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.

Re: Adding Buttons to MsgBox and vbDefaultButton4 by Karl

Karl
Fri Nov 18 11:48:32 CST 2005

George Lee wrote:
> 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.
--



Re: Adding Buttons to MsgBox and vbDefaultButton4 by GeorgeLee

GeorgeLee
Sat Nov 19 15:30:02 CST 2005

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.

"Karl E. Peterson" wrote:

> George Lee wrote:
> > 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.
> --
>
>
>

Re: Adding Buttons to MsgBox and vbDefaultButton4 by Karl

Karl
Wed Nov 23 11:39:36 CST 2005

George Lee wrote:
>> George Lee wrote:
>>> 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.
>
> 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.
--
Working without a .NET?
http://classicvb.org/