result = expr1 AND expr2

The logical 'AND' operator (Boolean).


exp1The first expression evaluating to a logical value.
exp2The second expression evaluating to a logical value.

REMARKS
* This is an Operator.
* This operator can also perform bitwise comparison on identically positioned bits in two numeric expressions.
* You can use the NOT operator to return the logical "NOT" operator.
* You can use the OR operator to return the logical "OR" operator.
* The equivalent Excel function is Application.WorksheetFunction.AND
* For the Microsoft documentation refer to docs.microsoft.com

Debug.Print True And True     '= True  
Debug.Print True And False '= False
Debug.Print False And True '= False
Debug.Print False And False '= False
Debug.Print True And Null '= Null
Debug.Print Null And True '= Null
Debug.Print False And Null '= False
Debug.Print Null And False '= False
Debug.Print Null And Null '= Null

© 2021 Better Solutions Limited. All Rights Reserved. © 2021 Better Solutions Limited Top