+ Reply to Thread
Results 1 to 7 of 7

delete 1 line after each 65 lines

  1. #1
    Registered User
    Join Date
    01-13-2010
    Location
    Zwolle, the Netherlands
    MS-Off Ver
    Excel 2003
    Posts
    3

    delete 1 line after each 65 lines

    I have 2 columns in Excel wich havn't the same amount of lines.
    One colom is 65.000 lines and the other one is 64.000
    I am looking for a option to delete 1 line after each 65 lines.
    Is this possible?

    (Yes, I know my English is bad )
    Last edited by dprins; 01-13-2010 at 08:07 AM.

  2. #2
    Forum Expert pike's Avatar
    Join Date
    12-11-2005
    Location
    Alstonville, Australia
    MS-Off Ver
    2016
    Posts
    5,342

    Re: delete 1 line after each 65 lines

    Hi dprins
    try....
    PHP Code: 
    For 66 To Cells(Rows.Count1).End(xlUp).Row Step 65
       Cells
    ("A").entirerow.Delete Shift:=xlUp
      Next 
    Edit comment below
    Last edited by pike; 01-13-2010 at 06:58 AM. Reason: No need for Y and needs to start at 66
    If the solution helped please donate to RSPCA

    Site worth visiting: Rabbitohs

  3. #3
    Forum Expert contaminated's Avatar
    Join Date
    05-07-2009
    Location
    Baku, Azerbaijan
    MS-Off Ver
    Excel 2013
    Posts
    1,430

    Re: delete 1 line after each 65 lines

    This is actually can be done with VBA. You should have posted this thread in Excel Programming thiugh

    You didn't mentione where deletion must be performed in. So I assumend that is Column A.

    Please Login or Register  to view this content.
    Люди, питающие благие намерения, как раз и становятся чудовищами.

    Regards, ?Born in USSR?
    Vusal M Dadashev

    Baku, Azerbaijan

  4. #4
    Registered User
    Join Date
    01-13-2010
    Location
    Zwolle, the Netherlands
    MS-Off Ver
    Excel 2003
    Posts
    3

    Re: delete 1 line after each 65 lines

    It worked. Thank you!!!

  5. #5
    Forum Expert pike's Avatar
    Join Date
    12-11-2005
    Location
    Alstonville, Australia
    MS-Off Ver
    2016
    Posts
    5,342

    Re: delete 1 line after each 65 lines

    Dont forget

    To mark your thread solved do the following:
    - Go to the first post
    - Click edit
    - Click Advance
    - Just below the word "Title:" you will see a dropdown with the word No prefix.
    - Change to Solve
    - Click Save

  6. #6
    Registered User
    Join Date
    01-13-2010
    Location
    Zwolle, the Netherlands
    MS-Off Ver
    Excel 2003
    Posts
    3

    Re: delete 1 line after each 65 lines

    I didn't know how to set the post to solved, I tried but I couldn't find it.
    thanks again

  7. #7
    Registered User
    Join Date
    01-14-2010
    Location
    Corpus Christi, Texas
    MS-Off Ver
    Excel 2003
    Posts
    5

    Re: delete 1 line after each 65 lines

    Thanks all. I will try Pike's and JB's suggestions and will return to the post.
    Great board. This my first try on it.
    Question: Why is it when I print this page, the macros under the heading "code" are printed in light grey color? Very hard to read. Any suggestion how to improce that?
    Thanks.

+ 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