+ Reply to Thread
Results 1 to 6 of 6

Printing multiple sheets in excel

  1. #1
    Registered User
    Join Date
    04-21-2012
    Location
    South Africa
    MS-Off Ver
    Excel 2010
    Posts
    5

    Printing multiple sheets in excel

    I have created a test in excel. the printing of multiple sheets must only be based on the test results. if the individual passes, then sheet2 will be printed. if the individual fails to pass the test only sheet one is then printed.

    can somebody please help.

    thank you

    Werner

  2. #2
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2010, 2019
    Posts
    40,689

    Re: Printing multiple sheets in excel

    Please Login or Register  to view this content.
    Entia non sunt multiplicanda sine necessitate

  3. #3
    Registered User
    Join Date
    04-21-2012
    Location
    South Africa
    MS-Off Ver
    Excel 2010
    Posts
    5

    Re: Printing multiple sheets in excel

    This is related to yesterday`s post. I require to print sheet1 and 2 depending on the outcome of the test. Therefore, if a person fails the test then only sheet1 is printed. If a person passes the test, well then sheet1 and sheet2 must be printed. The first part of the code works well, however the second part of the code where Sheet2 is also required to be printed- nothing happens. Please I need some help. p.s. Sheet2 is also hidden.
    Please Login or Register  to view this content.

  4. #4
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2010, 2019
    Posts
    40,689

    Re: Printing multiple sheets in excel

    Look at how the code is indented. Follow the logic mentally; what happens if C34 is <> "NO"?''

    Please Login or Register  to view this content.
    Last edited by shg; 05-20-2012 at 12:57 PM.

  5. #5
    Registered User
    Join Date
    04-21-2012
    Location
    South Africa
    MS-Off Ver
    Excel 2010
    Posts
    5

    Re: Printing multiple sheets in excel

    Good Afternoon shg. Using C34 is <> "NO" is not working.

  6. #6
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2010, 2019
    Posts
    40,689

    Re: Printing multiple sheets in excel

    That's because the code only tests it for YES after it's already been determined that it's NO. It can't be both, right?

    How might you rearrange it so it works?

+ 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