VB References. VB Functions VB ... Then...Else statement - select one of two sets of lines to execute; If...Then...ElseIf ...
www.w3schools.com