Results 1 to 14 of 14

Thread: Quick VBA Question - Adding Another Condition - Use ElseIf?

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #4
    VBAX Mentor
    Joined
    Nov 2022
    Location
    The Great Land
    Posts
    452
    Location
    You have 3 multi-line If Then but only 2 End If

    Options:

    1. add End If before ActiveCell.Offset

    2. make nested If a one-liner: If ActiveCell.Value <> "" Then ActiveCell.Value = "26 GA."

    3. use ElseIf
    Last edited by June7; 02-02-2023 at 05:26 PM.
    How to attach file: Reading and Posting Messages (vbaexpress.com), click Go Advanced below post edit window. To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

Tags for this Thread

Posting Permissions

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