Results 1 to 6 of 6

Thread: How To Remove or Delete Blank Or Empty Rows After Data Is Transferred

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Member
    Join Date
    Jun 2013
    Posts
    93
    Rep Power
    13
    Code:
    Sub ArchiveCompleted()
        Dim rng As Range
        With Worksheets("TASKS")
            For Each rng In .Range("E5:E" & Application.Max(.Cells(.Rows.Count, "E").End(xlUp).Row, 5))
                If LCase(rng.Value) = "completed" Then
                    With Worksheets("ARCHIVE")
                        .Cells(.Rows.Count, "B").End(xlUp)(2).Resize(, 2).Value = Array(rng.Offset(, -3).Value, rng(1, 2).Value)
                        rng.Offset(, -3).Resize(, 5).ClearContents
                    End With
                End If
            Next rng
            With .Range("B5:B" & Application.Max(.Cells(.Rows.Count, "B").End(xlUp).Row, 5))
              .SpecialCells(xlCellTypeBlanks).EntireRow.Delete
            End With
        End With
    End Sub

  2. #2
    Senior Member
    Join Date
    Jul 2013
    Posts
    102
    Rep Power
    13
    Thank you

Similar Threads

  1. Find All Empty Blank Cells Or KeyWord In A Column
    By william516 in forum Excel Help
    Replies: 9
    Last Post: 06-25-2013, 05:20 PM
  2. Replies: 13
    Last Post: 06-10-2013, 09:05 AM
  3. Delete Remove Rows By Criteria VBA Excel
    By marreco in forum Excel Help
    Replies: 5
    Last Post: 12-20-2012, 05:56 PM
  4. Replies: 2
    Last Post: 09-24-2012, 11:19 PM
  5. Delete Empty Rows
    By Rasm in forum Excel Help
    Replies: 4
    Last Post: 04-28-2011, 02:13 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •