What is a Nested If Statement in Excel VBA (Macros) - Code Included

preview_player
Показать описание
Grab the Free VBA Quick Reference Guide
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
Рекомендации по теме
Комментарии
Автор

I'm baffled as to how you have 10, 000 subscribers and 15 likes on this video, but I'm gonna make it 16 because this helped me out. Also I hope you didn't write this on your 35th birthday.

joshuabrown
Автор

The link to your VBA reference guide does not work.
I get this:
'404'- File Not Found

Prahatech
visit shbcf.ru