+ Reply to Thread
Results 1 to 4 of 4

Code to insert rows between selected cells

  1. #1
    Registered User
    Join Date
    08-22-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2007
    Posts
    48

    Code to insert rows between selected cells

    Hi All,

    I need a code to insert 4 rows between selected cells.

    For example if i select cells A1:A5. Rows should get inserted between A1 and A2 and then A2 and A3 like that upto A5.

    Thanks & Regards,

    DeepakS
    Last edited by DeepakS; 12-02-2011 at 05:29 AM.

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

    Re: Code to insert rows between selected cells

    Hi DeepakS
    Try this

    Please Login or Register  to view this content.
    If the solution helped please donate to RSPCA

    Site worth visiting: Rabbitohs

  3. #3
    Registered User
    Join Date
    08-22-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2007
    Posts
    48

    Re: Code to insert rows between selected cells

    Exactly what i was looking for. Thanks pike.

  4. #4
    Registered User
    Join Date
    08-06-2013
    Location
    New Delhi, India
    MS-Off Ver
    Excel 2007
    Posts
    4

    Re: Code to insert rows between selected cells

    WOW!! Exactly what I was looking for. Needed to insert 23 rows in between and this worked amazingly. 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