I know how to do IF statements in visual basic, but how do I incorporate AND and OR statements?ie, a simple if statement is:if UserForm.CheckBox1 = True Then statementEnd IfBut I want one that says:if UserForm.CheckBox1 = True or CheckBox 2 = True Then statementEnd IfThanks
I use Delphi, in VB i think you need a case statement, you should go to click here - (im Madboy as username). They will help you.
I got my answers there. If anyone is interested it would look like:If ((UserForm1.Checkbox1.Value = True)_ AND (UserForm1.Checkbox2.Value = True))_ OR (UserForm1.Checkbox3.Value = True)_ ThenstatementEnd If'Either both the first two are checked OR just the third one'
As I'm sure you're aware, the logic in your last post is quite different to the logic in your first.
This thread is now locked and can not be replied to.
OnePlus 5 review
Best of the Grad Shows 2017: UAL Central Saint Martins
MacBook Pro 15-inch (2017) review
Comment connecter un MacBook à une TV ?
© Copyright 2017 IDG UK. All Rights Reserved.