+ Reply to Thread
Results 1 to 4 of 4

Delete the Rows If it is Blank cell below Table header "Status"

Hybrid View

eltonlaw Delete the Rows If it is... 05-19-2012, 02:02 AM
eltonlaw Re: Delete the Rows If it is... 05-19-2012, 02:11 AM
jraj1106 Re: Delete the Rows If it is... 05-19-2012, 05:44 AM
eltonlaw Re: Delete the Rows If it is... 05-19-2012, 05:55 AM
  1. #1
    Registered User
    Join Date
    06-27-2011
    Location
    Hong Kong
    MS-Off Ver
    Excel 2010
    Posts
    55

    Question Delete the Rows If it is Blank cell below Table header "Status"

    Dear Expert,

    Want to delete the Rows If it is Blank cell (in column D) below Table header "Status"

    "Status" is Table Header... can be either in D3 or D4 or even D5.

    It is not fixed.



    Hope can help. Thanks

    Elton

  2. #2
    Registered User
    Join Date
    06-27-2011
    Location
    Hong Kong
    MS-Off Ver
    Excel 2010
    Posts
    55

    Re: Delete the Rows If it is Blank cell below Table header "Status"

    Sorry Expert,

    I made mistake ....

    Shoud be - Delete the Rows If it is non-Blank cell below Table header "Status"

    Sorry .... so sorry
    Hope expert can elp. Thanks indeed

  3. #3
    Valued Forum Contributor
    Join Date
    02-09-2012
    Location
    Mauritius
    MS-Off Ver
    Excel 2007
    Posts
    1,055

    Re: Delete the Rows If it is Blank cell below Table header "Status"

    Hi

    Try this code:

    Sub delrows()
        Dim rcnt As Long
        
        rcnt = Range("D" & Rows.Count).End(xlUp).Row
        
        For i = 3 To rcnt
            If Range("D" & i).Value <> "" Then
                Rows(i).Delete
                i = i - 1
            End If
        Next
    End Sub
    Click *, if my suggestion helps you. Have a good day!!

  4. #4
    Registered User
    Join Date
    06-27-2011
    Location
    Hong Kong
    MS-Off Ver
    Excel 2010
    Posts
    55

    Re: Delete the Rows If it is Blank cell below Table header "Status"

    Thanks for help. Tks indeed

+ Reply to Thread

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