Results 1 to 9 of 9

Deleting rows that meet two conditions

Threaded View

  1. #1
    Registered User
    Join Date
    06-25-2013
    Location
    Asia
    MS-Off Ver
    Excel 2007
    Posts
    23

    Deleting rows that meet two conditions

    Dear all!

    I am trying to delete all rows in my sheet where Column H and F are blank.

    Sub deleteBlank()
        Dim Lastrow As Integer
        
        Lastrow = Range("A" & Rows.Count).End(xlUp).Row
        
        Range("H2:H" & Lastrow, "F2:F" & Lastrow).SpecialCells(xlCellTypeBlanks).EntireRow.Delete
        
    End Sub
    I know how to do it with one criteria but when I add the second one it stops working. Any suggestions?

    Regards
    Last edited by Nils88; 08-13-2013 at 11:23 PM.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Macro for filtering raw data,copy/ pasting and sorting based on conditions
    By amazingjeffery in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 05-17-2013, 02:45 AM
  2. Copy and Pasting into next available row
    By glancast16 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-12-2010, 10:16 AM
  3. Copy+pasting from Firefox vs Copy+pasting from IE
    By srbloom in forum Excel General
    Replies: 0
    Last Post: 02-02-2009, 05:45 PM
  4. Copy & Pasting
    By Gambinus in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 02-26-2008, 09:26 AM
  5. Copy and Pasting Every Third Row
    By teo2099 in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 08-25-2005, 02:02 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