Let’s make the same program while we have two or three condition as given


Sub mySub()

Dim x, y As Integer

x = 80

y = 80

If x > y Then

MsgBox “X is Greater than Y”

ElseIf y > x Then

Msgbox “Y is Greater than X”


Msgbox “Both are EQUAL”

End If

End Sub

author image

About admin

You Might Also Like...

Excel Length Formula
HTML Links

1 Comment

  1. Simply wish to say your article is as astounding. The clarity in your put up is just great and i could assume you’re knowledgeable on this subject.
    Well with your permission let me to grasp your
    feed to keep up to date with drawing close post. Thanks one million and please continue the rewarding work.

Leave a Reply

Your email address will not be published.

Enjoy the tutorial? Please spread the word :)

Follow by Email