Results 1 to 8 of 8

Thread: IF statements with AND or OR

Threaded View

  1. #1

    Thread Starter
    New Member
    Join Date
    May 2005
    Posts
    4

    Resolved IF statements with AND or OR

    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

    statement

    End If

    But I want one that says:

    if UserForm.CheckBox1 = True or if UserForm1.CheckBox 2 = True Then

    statement

    End If

    and the same again, but using AND not or

    Thanks for any help given.
    Last edited by red6000; May 9th, 2005 at 05:48 PM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width