

Display the value of the variable with the help of a MsgBox.If they are unequal, then in the fourth column, print the message that “OOPS! Better Luck Next Time!” else for equal values, the cell should display “Lucky Draw!! You won the Jackpot.”.Within the for loop, write the logic using if else condition to test where the values for column 2 and column 3 are unequal or not.Define the for-next loop where looping will begin with n=2 and end at 9.Declare your variable with Integer Data type.
NOT EQUAL SIGN CODE
NOT EQUAL SIGN ISO
The reason is that the ‘’ operator works as per the ISO standards and abide all its rules, whereas the “!=” operator does not work with the ISO standards. If the user tries to use “!=”, it will throw a syntax error. But for VBA, only “” operator is valid to validate the Not Equal comparison. Both the operators perform the Not Equal comparison and return the same result in different programming languages. There are usually two ways to express the Not Equal operator comparison, which are “” and “!=”. This operator is useful in conducting the Inequality test. The Not Equal operator has lower precedence as compared to the other relational operators. Thus, the vice-versa for “Equal” operator. Equal operator a Boolean value True if the specified values are the same else for unequal values, it returns False. It works in the opposite of Equal logical operator “=”. If both the operands are unequal, it returns a Boolean value True (numeric value 1) else if both the operands are equal, it returns Boolean False (numeric value 0). This operator compares the operand for a strict inequality, and the result type is Bool. VBA Not Equal binary operator (“”) is a logical function that is used to check if the specified values are not equal or not.
