Results 1 to 7 of 7

Deleting Rows with "#N/A"

Threaded View

  1. #1
    Forum Contributor
    Join Date
    06-25-2011
    Location
    Sydney
    MS-Off Ver
    Excel 2016
    Posts
    615

    Deleting Rows with "#N/A"

    Hi Folks

    I use this Code to delete rows with "0"
    Sub DelRows2()
        Application.ScreenUpdating = False
        With Range("H1", Range("H" & Rows.Count).End(xlUp))
            .AutoFilter field:=1, Criteria1:="0"
            .Offset(1).EntireRow.Delete
            .AutoFilter
        End With
        Application.ScreenUpdating = True
    End Sub
    But I want to delete rows where a Formula returns #N/A Changing the Criteria1 above to "#N/A" does not work.
    Ideas please
    Cheers
    Hammer
    Last edited by hammer2; 10-26-2014 at 07:38 PM.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Replies: 1
    Last Post: 09-21-2013, 03:18 AM
  2. Macro for deleting rows which have texts belonging to a "remove list"
    By lanief in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-09-2013, 01:55 PM
  3. "Object required" error with VBA loop rows deleting
    By JKWIN in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 07-22-2012, 09:31 AM
  4. VBA Code for deleting rows where cell in column a states "delete row"
    By tnfire in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 03-20-2009, 06:17 PM
  5. Excel Macro deleting rows contain "0"
    By skyt in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-25-2008, 03:13 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