• Logic

    Author
    Topic
    #464025

    This works for me:

    If Range(“B” & rg) “65-03” Then
    Range(“B” & rg).EntireRow.Delete
    Else

    But I also need to eliminate non blank items in M, so why does this not work?

    If Range(“B” & rg) “65-03” And Range(“M” & rg) “”Then
    Range(“B” & rg).EntireRow.Delete
    Else

    Am I missing something?

    Viewing 1 reply thread
    Author
    Replies
    • #1186418

      Change And to Or (and insert a space before Then):

      If Range(“B” & rg) “65-03” Or Range(“M” & rg) “” Then

    • #1186419

      Grrrrrrrrrrr….

      Thanks

    Viewing 1 reply thread
    Reply To: Logic

    You can use BBCodes to format your content.
    Your account can't use all available BBCodes, they will be stripped before saving.

    Your information: