Results 1 to 5 of 5

Adapt code to delete row

Threaded View

  1. #3
    Forum Contributor
    Join Date
    11-04-2011
    Location
    pak
    MS-Off Ver
    Excel 2007
    Posts
    132

    Re: Adapt code to delete row

    hello
    try this code:

    Sub delete_row()
    Dim i,j As Long
    j = Cells(Rows.Count, 1).End(xlUp).Row 
    For i = 1 To j
    
     If Cells(i, 1) = "" Then
     
     Rows(i).Delete
     
     End If
     
    Next
    
    End Sub
    Last edited by shaukat; 11-20-2011 at 06:24 AM.

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