Consulting

Results 1 to 2 of 2

Thread: IF then

  1. #1

    IF then

    I see such an If statement like "If b or b1 Then........."
    So there should be such a type like "If b and b1 Then........." .
    What are the differences between "If then " and above?




  2. #2
    Administrator
    VP-Knowledge Base
    VBAX Grand Master mdmackillop's Avatar
    Joined
    May 2004
    Location
    Scotland
    Posts
    14,489
    Location
    All such statements are equivalent to "If TRUE then ...". You are testing (b OR b1), (b AND b1) or whatever for a True/False value. Try a Google search for "VBA logical operators"
    MVP (Excel 2008-2010)

    Post a workbook with sample data and layout if you want a quicker solution.


    To help indent your macros try Smart Indent

    Please remember to mark threads 'Solved'

Posting Permissions

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