Results 1 to 3 of 3

Delete Row under certain conditions

Threaded View

  1. #1
    Forum Contributor
    Join Date
    11-16-2011
    Location
    Australia
    MS-Off Ver
    Excel 2010
    Posts
    405

    Question Delete Row under certain conditions

    Hi guys,

    I just need some help with making changes to the following code

    
    Selection.SpecialCells(xlCellTypeLastCell).Select
    j = ActiveCell.Row
    
    For i = 1 To j
    
        If Range("C" & i).Borders(xlEdgeTop).LineStyle <> xlContinuous Then
        Rows(i).Delete
        i = i - 1
        End If
        
      Next i
    I want to find when a cell in column C does not contain a Top Border. If so then delete the row.

    is there a better method for doing this? this causes excel to hang

    Regards
    Last edited by jordan2322; 05-28-2012 at 08:50 PM.

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