Excel VBA AND Operator Explained – Logic for Conditions and Loops
Автор: Alex Luy
Загружено: 2018-07-03
Просмотров: 2120
Описание:
In this Excel VBA for Professionals lesson, we dive into the AND logical operator — a key tool used in conditional statements and loops.
You’ll learn:
What the AND operator does
How it evaluates true or false using two conditions
How to use literals, variables, and even relational expressions on either side of the AND
How this operator prepares you for using If, Do While, and For loops
This is an essential foundation for writing decision-making logic in your macros. Practice this before moving on to OR and If statements in future videos!
00:00 – Welcome: Intro to the AND operator in VBA
00:20 – Declaring Boolean variables and result placeholder
00:40 – What AND does: Only true if both sides are true
01:10 – Assigning both variables to true: Result is true
01:50 – Changing one operand to false: Result becomes false
02:30 – Demonstrating with both orders (left vs right false)
03:10 – Using literals (e.g., True AND False)
03:30 – Using relational expressions like (1 greater than 0) AND False
04:10 – Combining multiple expressions in AND
04:40 – Final example: Nested ANDs with parentheses
05:20 – When AND becomes powerful: conditions and loop logic
05:50 – What’s next: Using the OR operator in VBA
06:10 – Wrap-up & contact (part-timeadjunct.com)
Повторяем попытку...
Доступные форматы для скачивания:
Скачать видео
-
Информация по загрузке: