+ Reply to Thread
Results 1 to 6 of 6

Need macro to insert a blank row after every 11 rows

  1. #1
    Forum Contributor
    Join Date
    07-28-2012
    Location
    madrid
    MS-Off Ver
    Excel 2010 at work excel 2016
    Posts
    1,102

    Need macro to insert a blank row after every 11 rows

    Hi I need a macro which can insert a blank row after every 11 row. It shall start from row 2 so it can keep the header.
    And insert all the way down in the sheet , and also for the last one, even if there is not 11 in the last one.

    In this below example there is a button in Sheet1 and it have to activate the code in Sheet2

    Please have a look and see if some can help with this.

    Thanks in advance

    Sincerely Abjac
    Attached Files Attached Files

  2. #2
    Forum Contributor
    Join Date
    07-28-2012
    Location
    madrid
    MS-Off Ver
    Excel 2010 at work excel 2016
    Posts
    1,102

    Re: Need macro to insert a blank row after every 11 rows

    Sorry i have found the solution. Bu for other here is the code.

    Please Login or Register  to view this content.

  3. #3
    Forum Expert
    Join Date
    03-28-2012
    Location
    TBA
    MS-Off Ver
    Office 365
    Posts
    12,454

    Re: Need macro to insert a blank row after every 11 rows

    I do not know if this what you wanted. It may be to simple

    Please Login or Register  to view this content.

  4. #4
    Forum Contributor
    Join Date
    07-28-2012
    Location
    madrid
    MS-Off Ver
    Excel 2010 at work excel 2016
    Posts
    1,102

    Re: Need macro to insert a blank row after every 11 rows

    Hi AB33. Thanks for you help. I checked this code and the result is not correct. It stop on row 1433 and after there it dont insert a blank row.
    The first code i found working perfect. So no need to use all your time on this one, only if you want to find out of, why its not working then.
    Thanks allot.Great forum and so nice many wants to help.

    Have a nice day

    Sincerely

    Abjac

  5. #5
    Forum Expert
    Join Date
    03-28-2012
    Location
    TBA
    MS-Off Ver
    Office 365
    Posts
    12,454

    Re: Need macro to insert a blank row after every 11 rows

    Abjac,
    Glad to know that your code working fine for you, but my code is not same code as the one you have.

    Both codes are different and produce different result.

    You said
    "It shall start from row 2 so it can keep the header".
    My code insert rows starting from row 2, but your code starts at row 11.

  6. #6
    Forum Contributor
    Join Date
    07-28-2012
    Location
    madrid
    MS-Off Ver
    Excel 2010 at work excel 2016
    Posts
    1,102

    Re: Need macro to insert a blank row after every 11 rows

    HI AB33. Your right i think i make a wrong way to say it. I know what you mean. Your code is working perfect also. Its true. I guess your code, should start from row 12. 11 minus the header, Then it will do what i had in my mind, but not communicated correct to you.
    Your code is working perfect.

    Thanks allot for explaining.

    Have a nice day

    Sincerely
    Abjac

+ 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