+ Reply to Thread
Results 1 to 7 of 7

How to copy/insert new row into worksheet?

  1. #1
    Registered User
    Join Date
    08-05-2011
    Location
    Kaavi
    MS-Off Ver
    Excel 2007
    Posts
    45

    How to copy/insert new row into worksheet?

    Hello,

    I'm using this macro-code to insert new rows into worksheet

    Please Login or Register  to view this content.

    It copies row 6 and inserts it down to row 7.

    I need to modify this code so that it copies both row 6 and row 7 and then inserts copies down to rows 8 and 9, or something like that. Rows 6 and 7 needs to be copied and new copies needs to be inserted below. is this possible??

    Thanks in advance!
    Last edited by Crüe; 09-14-2011 at 03:06 AM.

  2. #2
    Forum Expert Simon Lloyd's Avatar
    Join Date
    03-02-2004
    Location
    locked in the cage
    MS-Off Ver
    All the ones my homepage shows
    Posts
    3,161

    Re: How to copy/insert new row into worksheet?

    Wwill you always want the copied results of rows 6 & 7 to go in rows 8 & 9?
    Not all forums are the same - seek and you shall find

  3. #3
    Registered User
    Join Date
    08-05-2011
    Location
    Kaavi
    MS-Off Ver
    Excel 2007
    Posts
    45

    Re: How to copy/insert new row into worksheet?

    Well... code I'm currently using copies row 6 and inserts new copy always in row 7. New copy always inserts in row 7 and previous copy drops to row 8 and so on.

  4. #4
    Forum Expert Simon Lloyd's Avatar
    Join Date
    03-02-2004
    Location
    locked in the cage
    MS-Off Ver
    All the ones my homepage shows
    Posts
    3,161

    Re: How to copy/insert new row into worksheet?

    Quote Originally Posted by Crüe View Post
    Well... code I'm currently using copies row 6 and inserts new copy always in row 7. New copy always inserts in row 7 and previous copy drops to row 8 and so on.
    Really?, the code you displayed is hard coded for row 6!

    So, let me get this right, you want to copy rows 6 & 7 and paste them in the next available blank row? or always in rows 8 & 9?

    I'm having trouble understanding what it is you want really.

  5. #5
    Registered User
    Join Date
    08-05-2011
    Location
    Kaavi
    MS-Off Ver
    Excel 2007
    Posts
    45

    Re: How to copy/insert new row into worksheet?

    It's hard to understand if you're foreigner :P But let's say I want them always in rows 8 & 9

  6. #6
    Forum Expert Simon Lloyd's Avatar
    Join Date
    03-02-2004
    Location
    locked in the cage
    MS-Off Ver
    All the ones my homepage shows
    Posts
    3,161

    Re: How to copy/insert new row into worksheet?

    in that case the below should work
    Please Login or Register  to view this content.

  7. #7
    Registered User
    Join Date
    08-05-2011
    Location
    Kaavi
    MS-Off Ver
    Excel 2007
    Posts
    45

    Re: How to copy/insert new row into worksheet?

    Works like a charm! 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