An if or ELSEIF statement inside another if or ELSEIF statement. Used when ELSE or ELSE IF statement is not usedĪpart from the above statement, NESTED IF statement can also be used, i.e. (ELSEIF statement must come first, after that ELSE) Simple to the complex condition can be written in VBA IF statement.īelow shown are the different types of VBA IF Statements with their syntax and examples. Usually, an if statement consists of a Boolean expression followed by statements (It may be one or many). It performs a task or operation when a condition is TRUE, else do nothing or do something else. It is a decision-making statement that is used to execute a block of code.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |