+ Reply to Thread
Results 1 to 6 of 6

Is possible to insert multiple rows in between current rows all at once?

  1. #1
    Registered User
    Join Date
    01-27-2014
    Location
    Buenos Aires
    MS-Off Ver
    Excel 2010
    Posts
    10

    Is possible to insert multiple rows in between current rows all at once?

    Hi there,

    I have this sheet with a lot of rows (2800+) and I have to insert one row above each one them.

    If I select the rows and click insert, Excel will insert the same amount of rows but all together above the selected ones.

    Like this.
    Cu7T3yf.png

    G369Uea.png

    I8LNmgC.png

    But I need the inserted rows to be like this:

    VFyoQd6.png

    Any ideas?

  2. #2
    Forum Expert
    Join Date
    10-09-2012
    Location
    Dallas, Texas
    MS-Off Ver
    MO 2010 & 2013
    Posts
    3,049

    Re: Is possible to insert multiple rows in between current rows all at once?

    You can use a macro.

    Please Login or Register  to view this content.
    How to install your new code
    1. Copy the Excel VBA code
    2. Select the workbook in which you want to store the Excel VBA code
    3. Press Alt+F11 to open the Visual Basic Editor
    4. Choose Insert > Module
    5. Edit > Paste the macro into the module that appeared
    6. Close the VBEditor
    7. Save your workbook (Excel 2007+ select a macro-enabled file format, like *.xlsm)

    To run the Excel VBA code:
    1. Press Alt-F8 to open the macro list
    2. Select a macro in the list
    3. Click the Run button
    Last edited by mikeTRON; 07-22-2016 at 11:40 AM.
    Please ensure you mark your thread as Solved once it is. Click here to see how.
    If a post helps, please don't forget to add to our reputation by clicking the star icon in the bottom left-hand corner of a post.

  3. #3
    Registered User
    Join Date
    01-27-2014
    Location
    Buenos Aires
    MS-Off Ver
    Excel 2010
    Posts
    10

    Re: Is possible to insert multiple rows in between current rows all at once?

    Hi mikeTRON,

    Thanks!!

    I get this error:

    sqi2E3I.png

    Do i have to select the rows before running the macro?

  4. #4
    Forum Expert
    Join Date
    10-09-2012
    Location
    Dallas, Texas
    MS-Off Ver
    MO 2010 & 2013
    Posts
    3,049

    Re: Is possible to insert multiple rows in between current rows all at once?

    Whoops, I corrected the code in the post above for that row that errored out on you.

  5. #5
    Registered User
    Join Date
    01-27-2014
    Location
    Buenos Aires
    MS-Off Ver
    Excel 2010
    Posts
    10

    Re: Is possible to insert multiple rows in between current rows all at once?

    Great, Thanks!

  6. #6
    Forum Expert
    Join Date
    10-09-2012
    Location
    Dallas, Texas
    MS-Off Ver
    MO 2010 & 2013
    Posts
    3,049

    Re: Is possible to insert multiple rows in between current rows all at once?

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED. Thanks.

+ 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. [SOLVED] Insert multiple rows each specific number of rows
    By YasserKhalil in forum Excel Programming / VBA / Macros
    Replies: 23
    Last Post: 05-21-2016, 10:36 AM
  2. Rolling up multiple rows into one. help with current macro.
    By kleptilian in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 12-02-2014, 12:58 AM
  3. [SOLVED] Insert rows based on the current cell value and, then, copy some cells into the new rows
    By Excel-RZ in forum Excel Programming / VBA / Macros
    Replies: 12
    Last Post: 11-03-2013, 05:19 PM
  4. [SOLVED] insert Multiple Rows Using VBA
    By NeedForExcel in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 05-01-2013, 07:00 AM
  5. Replies: 0
    Last Post: 03-06-2013, 05:44 PM
  6. [SOLVED] Insert Multiple Rows Based Off Number in Cell and Copy Data From Above New Rows
    By tstell1 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-02-2012, 04:15 PM
  7. Insert Multiple Rows
    By billykiller05 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-29-2009, 02:29 PM

Tags for this Thread

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