How can i display a msgbox with Yes No cancel and yes to all Or Yes No
cancel and No to All Buttons...

Re: messagebox yes no cancel yestoAll by McKirahan

McKirahan
Tue Jul 20 05:42:53 CDT 2004

This is a multi-part message in MIME format.

------=_NextPart_000_0023_01C46E1C.65BF6C00
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

"Thara DK" <Tharadk@hotmail.com> wrote in message =
news:ep9F01jbEHA.3664@TK2MSFTNGP12.phx.gbl...
> How can i display a msgbox with Yes No cancel and yes to all Or Yes No
> cancel and No to All Buttons...


How about 3 out of 4?

MsgBox "MsgBox Text",vbYesNoCancel+vbQuestion,"MsgBox Title"


Constant Value Description=20
------------------ ----- -----------------------------------------
vbOKOnly 0 Display OK button only.=20
vbOKCancel 1 Display OK and Cancel buttons.=20
vbAbortRetryIgnore 2 Display Abort, Retry, and Ignore buttons.=20
vbYesNoCancel 3 Display Yes, No, and Cancel buttons.=20
vbYesNo 4 Display Yes and No buttons.=20
vbRetryCancel 5 Display Retry and Cancel buttons.=20
vbCritical 16 Display Critical Message icon. =20
vbQuestion 32 Display Warning Query icon.=20
vbExclamation 48 Display Warning Message icon.=20
vbInformation 64 Display Information Message icon.=20
vbDefaultButton1 0 First button is default.=20
vbDefaultButton2 256 Second button is default.=20
vbDefaultButton3 512 Third button is default.=20
vbDefaultButton4 768 Fourth button is default.=20
vbApplicationModal 0 Application modal.=20
vbSystemModal 4096 System modal.

------=_NextPart_000_0023_01C46E1C.65BF6C00
Content-Type: text/html;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Diso-8859-1">
<META content=3D"MSHTML 5.50.4937.800" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY>
<DIV><FONT face=3DArial size=3D2>"Thara DK" &lt;</FONT><A=20
href=3D"mailto:Tharadk@hotmail.com"><FONT face=3DArial=20
size=3D2>Tharadk@hotmail.com</FONT></A><FONT face=3DArial size=3D2>&gt; =
wrote in=20
message </FONT><A =
href=3D"news:ep9F01jbEHA.3664@TK2MSFTNGP12.phx.gbl"><FONT=20
face=3DArial =
size=3D2>news:ep9F01jbEHA.3664@TK2MSFTNGP12.phx.gbl</FONT></A><FONT=20
face=3DArial size=3D2>...</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>&gt; How can i display a msgbox with =
Yes No cancel=20
and yes to all Or Yes No<BR>&gt; cancel and No to All=20
Buttons...<BR></FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT size=3D2><FONT face=3DArial>How about 3 out of =
4?</FONT></DIV></FONT>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>MsgBox "MsgBox=20
Text",vbYesNoCancel+vbQuestion,"MsgBox Title"</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DCourier=20
size=3D1>Constant&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
&nbsp;Value Description&nbsp;</FONT></DIV>
<DIV><FONT face=3DCourier size=3D1>------------------ -----=20
-----------------------------------------<BR>vbOKOnly&nbsp;&nbsp;&nbsp;=20
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 0 &nbsp;Display =
OK button=20
only.&nbsp;<BR>vbOKCancel&nbsp;&nbsp;&nbsp; =
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
&nbsp; 1 &nbsp;Display OK and Cancel=20
buttons.&nbsp;<BR>vbAbortRetryIgnore&nbsp;&nbsp;&nbsp; 2 &nbsp;Display =
Abort,=20
Retry, and Ignore=20
buttons.&nbsp;<BR>vbYesNoCancel&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=
&nbsp;=20
3 &nbsp;Display Yes, No, and Cancel =
buttons.&nbsp;<BR>vbYesNo&nbsp;&nbsp;&nbsp;=20
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;4 =
&nbsp;Display Yes=20
and No buttons.&nbsp;<BR>vbRetryCancel&nbsp;&nbsp;&nbsp;=20
&nbsp;&nbsp;&nbsp;&nbsp; 5 &nbsp;Display Retry and Cancel=20
buttons.&nbsp;<BR>vbCritical&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp; =
&nbsp;&nbsp;=20
16 &nbsp;Display Critical Message =
icon.&nbsp;&nbsp;<BR>vbQuestion&nbsp;&nbsp;=20
&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp; 32 &nbsp;Display Warning Query=20
icon.&nbsp;<BR>vbExclamation&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;48=20
&nbsp;Display Warning Message icon.&nbsp;<BR>vbInformation&nbsp;&nbsp;=20
&nbsp;&nbsp;&nbsp; &nbsp;64 &nbsp;Display Information Message =
icon.&nbsp;<BR>=20
vbDefaultButton1&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 0 &nbsp;First button is=20
default.&nbsp;<BR>vbDefaultButton2&nbsp;&nbsp;&nbsp; 256 &nbsp;Second =
button is=20
default.&nbsp;<BR>vbDefaultButton3&nbsp;&nbsp;&nbsp; 512 &nbsp;Third =
button is=20
default.&nbsp;<BR>vbDefaultButton4&nbsp;&nbsp;&nbsp; 768 &nbsp;Fourth =
button is=20
default.&nbsp;<BR>vbApplicationModal&nbsp;&nbsp;&nbsp; 0 =
&nbsp;Application=20
modal.&nbsp;<BR>vbSystemModal &nbsp;&nbsp;&nbsp;&nbsp; 4096 &nbsp;System =

modal.<BR></DIV></FONT></BODY></HTML>

------=_NextPart_000_0023_01C46E1C.65BF6C00--


Re: messagebox yes no cancel yestoAll by Thara

Thara
Tue Jul 20 23:19:30 CDT 2004

Tom Lavedas
U r a Genius, Good Work tom... Ill add that to our common Programs
routine....

Thanks...



"Tom Lavedas" <tlavedas@hotmail.remove.com> wrote in message
news:C7FF8BF8-603A-49E3-B403-B46D60C6E08A@microsoft.com...
> As McKarihan implied, but didn't come right out and state - the MsgBox
cannot do this. If you're really interested in this capability and very
adventuresome you can try my alternative MsgBox replacement which uses the
IE.Application object to construct a look alike, but much more versitile
replacement. Find a copy at:
>
> http://www.pressroom.com/~tglbatch/MsgBoxEx.vbs.txt
>
> You can add as many buttons with whatever captions as you want - as well
as control font colors and sizes and even use it as a non-model application.
Good luck.
>
> Tom Lavedas
> ===========
>
>
> "Thara DK" wrote:
>
> > How can i display a msgbox with Yes No cancel and yes to all Or Yes No
> > cancel and No to All Buttons...
> >
> >
> >
> >
> >
> >
> >