+ Reply to Thread
Results 1 to 3 of 3

If statement not working

  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

  2. #2
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,258
    Hello lit2003.

    Welcome to the Forum!

    Before anyone can give you an answer, you need to post your code and/or workbook. You can only attach workbooks that have been zipped and are 100kb or less in size.

    Sincerely,
    Leith Ross

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

    Added Workbook

    Sorry,

    Workbook is attached.

    Thanks,

    lit2003

+ Reply to Thread

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