Results 1 to 3 of 3

If statement not working

Threaded View

  1. #1
    Registered User
    Join Date
    01-24-2008
    Posts
    8

    If statement not working

    Hi,
    Hope someone can help me with this. I'm kind of new to VBA/Excel.

    I have a worksheet with a print button on. User can input quantities in column A, rows A3:A50. Rows A4:A8 print one PDF file if a quantity is in any of those rows. Other ranges print a different PDF file, in all there are 15 different ranges that print a different PDF. User may have multiple values in these ranges, but I want only one PDF to print.

    The If statement I created, searches this range and prints only one PDF per selected range, but after about row A29, it prints the PDF file for range A4:A8between the other ranges that were selected.

    Is this common with If statements?

    Any suggestions?

    Thanks,
    LIT2003
    Attached Files Attached Files
    Last edited by lit2003; 01-25-2008 at 09:32 AM. Reason: Adding attachment

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

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

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1