Logo 
Search:

MS Office Forum

Ask Question   UnAnswered
Home » Forum » MS Office       RSS Feeds

And in VB

  Asked By: Bonni    Date: Feb 26    Category: MS Office    Views: 374
  

How do you use AND in VB
For example
If Range("A1").Value = 5 Then Range("A2").Value = 3 AND Range
("A3").Value = 4

Share: 

 

2 Answers Found

 
Answer #1    Answered By: Binge Fischer     Answered On: Feb 26

If Range("A1").Value = 5 Then
Range("A2").Value = 3
Range("A3").Value = 4
End if

 
Answer #2    Answered By: Allison Stanley     Answered On: Feb 26

And you can use AND as AND only

If Range("A1").Value = 5 then

Range("A2").Value = 3 AND Range ("A3").Value = 4

End if

 
Didn't find what you were looking for? Find more on And in VB Or get search suggestion and latest updates.




Tagged: