And Operator


Back to Index | Table of Contents

 

Perform a logical conjunction on two expression. In this case, two expression has to be satisfied in order for the macro to continuerunning. The macro below show how:

Sub AndDemo ()

x = 1

y =2

If x = 1 and y = 2 then

z = x * y

MsgBox (z)

End if

End Sub

 

   
WidgetBucks - Trend Watch - WidgetBucks.com

HOME