0% found this document useful (0 votes)
43 views

Syntax-Msgbox ("Message Box", Type, "Title")

The document provides information on using message boxes in syntax. It lists the different types of message boxes including OK, Cancel, Abort, Retry, Ignore, Yes, No as well as constants for the button options. It also includes constants for setting the default button and application/system models. The document concludes with a brief description of if/else syntax.

Uploaded by

mukund
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
43 views

Syntax-Msgbox ("Message Box", Type, "Title")

The document provides information on using message boxes in syntax. It lists the different types of message boxes including OK, Cancel, Abort, Retry, Ignore, Yes, No as well as constants for the button options. It also includes constants for setting the default button and application/system models. The document concludes with a brief description of if/else syntax.

Uploaded by

mukund
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 2

Message Box:

syntax-

msgbox("Message box", type, "title")

Button
OK

Warning
1

Cancel

Abort

Retry

Ignore

Yes

No

Msgbox button constant


VBOkOnly
VBOKCancel
VBAbortRetryIgnore

0
1
2

Show OK only
OK, Cancel
Show Abort retry and
ignore

VBYesNoCancel
VBYesNO
VBRetryCancel
VBCritical

3
4
5
16
17
18
19
20
21

VBQuestion

32
33
34
35
36
37

Question

VBExclamation

48
49
50
51
52

Warning

critical

53
VBInformation

64

VBDefaultButton1
VBDefaultButton2
VBDefaultButton3
VBDefaultButton4
VBApplicationModel

0
256
512
768
0

VBSystemModel

4096

If else
Synax - If Condition Then
Code:
ElseIf Condition Then
Code
End If
s

Show information
message box
First Button is default
Second Button is default
Third Button is default
Fourth Button is default
Demands that the user
respond to the dialog before
allowing continuation of work
in current application
Causes suspention of all
applications untill the user
responds to the diloge

You might also like