What is a Nested If Statement in Excel VBA (Macros) - Code Included
Автор: EverydayVBA
Загружено: 2016-07-03
Просмотров: 5899
Grab the Free VBA Quick Reference Guide
https://www.chrisjterrell.com/excel-v...
A nested if statement is an if statement within another if statement. It allows you to execute mutiple criteria. If you are learning VBA understanding this concept is a life saver.
CODE:
===============
Sub NestedIf()
mbox = MsgBox("Can I ask you a Question?", vbYesNo)
If mbox = vbYes Then
i = InputBox("How Old are you")
If i _ 35 Then
MsgBox "You are Old"
Else
MsgBox "You are a young"
End If
End If
End Sub
Доступные форматы для скачивания:
Скачать видео mp4
-
Информация по загрузке: