Results 1 to 4 of 4

Delete rows missing contents in AF then A

Threaded View

  1. #1
    Registered User
    Join Date
    05-02-2009
    Location
    New, New York
    MS-Off Ver
    Excel 2003
    Posts
    31

    Delete rows missing contents in AF then A

    Good day to you. here is what I am working on. If a row in Column AF does not say “Cust” than I want to delete it, next if a row in Column A does not say “Numb” I want to delete it. Here is what I am working with so far. If you can assist, thank you.

    Sub Delete()
    
    FirstRow = 2
    LastRow = Range("AF" & Rows.Count).End(xlUp).Row
    For R = LastRow To FirstRow Step -1
    If Range("AF" & R).Value = "Cust" Then
    after Cust
    Rows(R).Delete
    End If
    Next
    End Sub
    Last edited by EJensen; 07-23-2009 at 10:12 PM. Reason: SOLVED

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