+ Reply to Thread
Results 1 to 5 of 5

Checking Worksheets for #N/A's before printing

  1. #1
    Registered User
    Join Date
    08-05-2009
    Location
    Jacksonville, FL
    MS-Off Ver
    Excel 2007
    Posts
    18

    Checking Worksheets for #N/A's before printing

    I have a macro set up to print about 10 sheets out of the 15 in the workbook. I'd like to add a statement at the beginning that ends the macro if any #N/A's exist on any of the worksheets that it is printing. I'd like it to prompt the user that an #N/A has been found and it to go to the cell that shows an error. Any help would be appreciated. Thanks!

  2. #2
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200

    Re: Checking Worksheets for #N/A's before printing

    Do you want the user to remedy the error or simply not priny it?
    Hope that helps.

    RoyUK
    --------
    For Excel Tips & Solutions, free examples and tutorials why not check out my web site

    Free DataBaseForm example

  3. #3
    Forum Expert Palmetto's Avatar
    Join Date
    04-04-2007
    Location
    South Eastern, USA
    MS-Off Ver
    XP, 2007, 2010
    Posts
    3,978

    Re: Checking Worksheets for #N/A's before printing

    Does this work for you? It is set to search in columns A:Z, but you should adjust it to fewer columns if your actual range is less so that it is more efficient (searching fewer cells)

    Please Login or Register  to view this content.

  4. #4
    Registered User
    Join Date
    08-05-2009
    Location
    Jacksonville, FL
    MS-Off Ver
    Excel 2007
    Posts
    18

    Re: Checking Worksheets for #N/A's before printing

    That works! Thanks so much! The only problem is I only need it to check just certain worksheets, the ones that are printing. The other worksheets may contain errors.

    It also occured to me that I may have errors of #DIV/O! or #VALUE. How can I add multiple criteria to stop the printing?

    Thanks for your help!

  5. #5
    Registered User
    Join Date
    08-05-2009
    Location
    Jacksonville, FL
    MS-Off Ver
    Excel 2007
    Posts
    18

    Re: Checking Worksheets for #N/A's before printing

    Also, is there any way to modify the specific range for each worksheet it checks other than just choosing the columns? For instance range A1:T65?

    Thanks!

+ 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