You are on page 1of 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