+ Reply to Thread
Results 1 to 5 of 5

Need Macro to Find Cell Errors in Sheet & Provide a List of Error Cell Addresses in Form

  1. #1
    Registered User
    Join Date
    10-14-2015
    Location
    East Coast
    MS-Off Ver
    2013
    Posts
    69

    Need Macro to Find Cell Errors in Sheet & Provide a List of Error Cell Addresses in Form

    Hi All,

    I'm having a bit of trouble with this one. I'm looking to write a script that will find all cell errors (e.g., #VALUE, #NA, #REF, #DIV/0, #NUM!, #NULL!) and provide a list of the cell addresses of said errors in a userform. Ideally this list would be in a userform listbox to enable scrolling.

    So far I have the below, but i'm having trouble with the cell address and list bit.

    HTML Code: 
    Any help would be greatly appreciated!

  2. #2
    Forum Expert Olly's Avatar
    Join Date
    09-10-2013
    Location
    Darlington, UK
    MS-Off Ver
    Excel 2016, 2019, 365
    Posts
    6,284

    Re: Need Macro to Find Cell Errors in Sheet & Provide a List of Error Cell Addresses in Fo

    Create a userform with a label and a listbox.

    Please Login or Register  to view this content.
    let Source = #table({"Question","Thread", "User"},{{"Answered","Mark Solved", "Add Reputation"}}) in Source

    If I give you Power Query (Get & Transform Data) code, and you don't know what to do with it, then CLICK HERE

    Walking the tightrope between genius and eejit...

  3. #3
    Forum Guru xlnitwit's Avatar
    Join Date
    06-27-2016
    Location
    London
    MS-Off Ver
    Windows: 2010; Mac: 16.13 (O365)
    Posts
    7,085

    Re: Need Macro to Find Cell Errors in Sheet & Provide a List of Error Cell Addresses in Fo

    Just a small addition- you need an error handler in case SpecialCells fails
    Please Login or Register  to view this content.
    Don
    Please remember to mark your thread 'Solved' when appropriate.

  4. #4
    Registered User
    Join Date
    10-14-2015
    Location
    East Coast
    MS-Off Ver
    2013
    Posts
    69

    Re: Need Macro to Find Cell Errors in Sheet & Provide a List of Error Cell Addresses in Fo

    Wow - this is great, works perfectly. Thank you so much!

  5. #5
    Forum Expert Olly's Avatar
    Join Date
    09-10-2013
    Location
    Darlington, UK
    MS-Off Ver
    Excel 2016, 2019, 365
    Posts
    6,284

    Re: Need Macro to Find Cell Errors in Sheet & Provide a List of Error Cell Addresses in Fo

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED. You can also 'Add Reputation' to those who helped you. Thanks.

+ 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. Replies: 2
    Last Post: 05-09-2017, 02:42 PM
  2. Macro to parse addresses and change text in a cell or cell range
    By mosey16 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 12-03-2013, 10:15 AM
  3. Replies: 3
    Last Post: 08-13-2012, 11:44 AM
  4. Replies: 0
    Last Post: 08-01-2012, 11:03 AM
  5. Provide list of cell addresses that don't meet criteria
    By BEEJAY in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 09-23-2011, 07:42 AM
  6. Macro to provide list of alternatives based on cell value
    By waynecal in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-25-2011, 06:27 PM
  7. Replies: 3
    Last Post: 10-24-2005, 01:05 PM

Tags for this Thread

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