+ Reply to Thread
Results 1 to 2 of 2

insert multiple blank rows at designated cells

Hybrid View

tessawanders insert multiple blank rows at... 06-13-2014, 05:36 AM
JOHN H. DAVIS Re: insert multiple blank... 06-13-2014, 06:37 AM
  1. #1
    Registered User
    Join Date
    06-09-2014
    Location
    Nairobi, Kenya
    MS-Off Ver
    2010
    Posts
    12

    insert multiple blank rows at designated cells

    Hi Everyone,

    I hope someone can help me.
    I have a large list of cells in excel: 15, 33, 90, 102, 149, 159, 217, 228, 238, 247, 305, 312, 369, 417, 428, 486, 538, 548, 606, 621, 671, 679, 737, 805, 816, 874, 915, 923, 981, 1029,1038 .
    Under each of these cells I would like to insert 20 blank rows. I have tried various codes but i'm struggling with the fact that as soon as I insert 20 rows at cell 15, all the other cellnumbers change.

    Help me please!!



    Ps. This is a reformulation of this post: http://www.excelforum.com/excel-prog...ml#post3727280

  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: insert multiple blank rows at designated cells

    If you mean by cells your row count then working backwards from your largest row number to the smallest this might help.

    Sub tessawanders()
    Rows(1038).offset(1).Resize(20).Insert
    Rows(1029).offset(1).Resize(20).Insert
    Rows(981).offset(1).Resize(20).Insert
    'And so on.
    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. How to create a macro to insert blank rows and copy data into blank rows?
    By zodiack101 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 10-29-2013, 01:18 PM
  2. Insert rows and enter data in blank cells.
    By jscalem in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 02-22-2013, 06:47 AM
  3. Set autofit property for designated rows on multiple sheets
    By mandora in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 01-08-2013, 09:37 PM
  4. [SOLVED] Insert Multiple Blank Rows to a ListObject Table
    By Dominicus in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 06-20-2012, 04:14 AM
  5. [SOLVED] Change cell value if all other designated cells are *not blank*.
    By ObiWanBaloney in forum Excel General
    Replies: 2
    Last Post: 05-16-2012, 05:16 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