+ Reply to Thread
Results 1 to 2 of 2

Deleting Repeating Lines of Data

Hybrid View

ISUCyclones Deleting Repeating Lines of... 03-11-2014, 12:26 PM
JOHN H. DAVIS Re: Deleting Repeating Lines... 03-11-2014, 01:10 PM
  1. #1
    Registered User
    Join Date
    06-14-2012
    Location
    Ames, Iowa
    MS-Off Ver
    Excel 2010
    Posts
    50

    Deleting Repeating Lines of Data

    I get data imported into an excel spreadsheet. Its not very conducive because I have around 450 pages of data that all have the same header at the top of the page with information I want removed. Is there any code that will help me remove all the repeated lines that I don't need? See attached spreadsheet, the highlighted items are what I would need to be removed.
    Thanks in advance for any advice or help you can give me.
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    06-12-2012
    Location
    Ridgefield Park, New Jersey
    MS-Off Ver
    Excel 2003,2007,2010
    Posts
    10,241

    Re: Deleting Repeating Lines of Data

    Would something like this help?

    Sub ISUCyclones()
    Dim i As Long
    For i = Range("A" & Rows.count).End(3)(1).Row To 2 Step -1
        If Range("A" & i).Value = "ACCOUNT" Then
            Cells(i + 2, "A").Resize(47).EntireRow.Delete
        End If
    Next i
    End Sub

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Repeating macro for various worksheets to complete lines in consolidation sheet
    By RossChip in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-08-2013, 07:46 AM
  2. Replies: 3
    Last Post: 09-11-2012, 02:19 AM
  3. Deleting Lines
    By jnuz in forum Excel General
    Replies: 5
    Last Post: 08-20-2012, 10:19 PM
  4. Repeating a specific macro over subsequent lines
    By stepheng2383 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 03-04-2009, 07:58 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