+ Reply to Thread
Results 1 to 6 of 6

Copy, paste and insert new rows into new sheets

  1. #1
    Registered User
    Join Date
    10-02-2012
    Location
    Malaysia
    MS-Off Ver
    Excel 2010
    Posts
    7

    Copy, paste and insert new rows into new sheets

    Hello there

    So here is the case. I have a column "Name" in Sheet1 for example:

    Name
    -----
    Nanas
    Sam
    Nora

    And then i want to copy the data in the column "Name" and transfer it into Sheet2 that will look like this:

    Name
    -----
    AAA
    Nanas
    AAA
    Sam
    AAA
    Nora

    Can you guys help me on how to create a macro code that will generate an output in the example above?

    Thank you.
    Last edited by nanas; 10-10-2012 at 10:36 PM.

  2. #2
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,166

    Re: Copy, paste and insert new rows into new sheets

    So you want just the text "AAA" to be input into every alternate row ?
    If I have helped, Don't forget to add to my reputation (click on the star below the post)
    Don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved)
    Use code tags when posting your VBA code: [code] Your code here [/code]

  3. #3
    Forum Contributor
    Join Date
    08-29-2012
    Location
    Slough
    MS-Off Ver
    Excel 2007
    Posts
    469

    Re: Copy, paste and insert new rows into new sheets

    Hi Nanas,

    Try this code, I have assumed that you do not want AAA and that was to show a blank row that was inserted.

    Please Login or Register  to view this content.
    Hope that helps!

    Regards

    Danny

  4. #4
    Registered User
    Join Date
    10-02-2012
    Location
    Malaysia
    MS-Off Ver
    Excel 2010
    Posts
    7

    Re: Copy, paste and insert new rows into new sheets

    Hi guys,

    Thank you for your replies.

    Correct Arlette. I want the data AAA to be inserted in every alternate row.

    Thank you Danny for the code, but as mention above I want to insert AAA in every alternate row in Sheet2. Hope you can help me to solve this problem.

    Can you guys help me?

    Thank you in advance.

  5. #5
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,166

    Re: Copy, paste and insert new rows into new sheets

    Try this code - put it in a standard module -

    Please Login or Register  to view this content.

  6. #6
    Registered User
    Join Date
    10-02-2012
    Location
    Malaysia
    MS-Off Ver
    Excel 2010
    Posts
    7

    Re: Copy, paste and insert new rows into new sheets

    Thank you so much Arlette, it works!

+ 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