+ Reply to Thread
Results 1 to 2 of 2

error trapping within the overall workbook?

Hybrid View

  1. #1
    Forum Expert
    Join Date
    10-09-2014
    Location
    Newcastle, England
    MS-Off Ver
    2003 & 2013
    Posts
    1,986

    error trapping within the overall workbook?

    rather than coding error trapping within forumlas Im wondering if theres an easy way to do it as an overall? Im guessing I could write some code within the Worksheet_Update event but wondered if anyone had done this or whether theres a better way?

    eg

    I may have a thousand cells with the formula =Ax/Bx

    but Im aware that quite legitimately Bx can be zero and therefore will cause a #DIV/0 error which just looks wrong.....so I can wrap the formula in a =IF(ISERROR(Ax/Bx) statement but dont want to have to do that for every item, everytime I add some calculation.


    Whats the best way to do this?

  2. #2
    Forum Expert newdoverman's Avatar
    Join Date
    02-07-2013
    Location
    Port Dover, Ontario, Canada
    MS-Off Ver
    2010
    Posts
    10,330

    Re: error trapping within the overall workbook?

    This might not be the best way but you could use conditional formatting on each worksheet to hide errors by making the font colour white when an error occurs.

    Select the worksheet or the range likely to be used and apply this formula in Conditional Formatting.
    Formula: copy to clipboard
    =ISERROR(A1)
    <---------If you like someone's answer, click the star to the left of one of their posts to give them a reputation point for that answer.
    Ron W

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] Error Trapping When Reading From Another Workbook
    By redtop91 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 08-06-2014, 02:54 PM
  2. [SOLVED] Error Trapping
    By metsci in forum Excel General
    Replies: 9
    Last Post: 03-28-2014, 10:07 PM
  3. Error trapping
    By craigoutinoz@hotmail.com in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-02-2006, 08:30 AM
  4. [SOLVED] Error Trapping
    By JK in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-01-2006, 07:50 PM
  5. Error trapping
    By Steve in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-17-2005, 06:05 PM

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