+ Reply to Thread
Results 1 to 5 of 5

copy and paste from sheet1 and sheet2 to sheet3 and loop

  1. #1
    Registered User
    Join Date
    01-03-2013
    Location
    Canada
    MS-Off Ver
    Excel 2007
    Posts
    2

    copy and paste from sheet1 and sheet2 to sheet3 and loop

    Hi,

    I have been having difficulty figuring out a macro that will copy data from sheet1 (56 records) to sheet2 (210 records) but loop it every 56 lines.
    For example:
    Sheet1 data - A1:1, A2:2......A56:56
    Sheet2 data - A1:abc, A2:def...A210:ghi

    Result in Sheet 2
    A1:abc, B1:1 to A56:abc, B56:1
    A57:def, B57:2 to A113:def, B113:2

    This should be looped to paste all the values from sheet1 to sheet2.

    Please help!

    Thanks so much! - I know in the title it says sheet 3 - please ignore that.

  2. #2
    Registered User
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,164

    Re: copy and paste from sheet1 and sheet2 to sheet3 and loop

    You will need to explain using a sample file.

    To Attach a File:

    1. Click on Go Advanced
    2. In the frame Attach Files you will see the button Manage Attachments
    3. Click the button.
    4. A new window will open titled Manage Attachments - Excel Forum.
    5. Click the Browse... button to locate your file for uploading.
    6. This will open a new window File Upload.
    7. Once you have located the file to upload click the Open button. This window will close.
    8. You are now back in the Manage Attachments - Excel Forum window.
    9. Click the Upload button and wait until the file has uploaded.
    10. Close the window and then click Submit.
    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
    Registered User
    Join Date
    01-03-2013
    Location
    Canada
    MS-Off Ver
    Excel 2007
    Posts
    2

    Wink Re: copy and paste from sheet1 and sheet2 to sheet3 and loop

    Thanks for your reply, but I think I figured it out!

    here's the macro.

    Please Login or Register  to view this content.
    thanks!
    Last edited by arlu1201; 01-07-2013 at 02:03 PM.

  4. #4
    Registered User
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,164

    Re: copy and paste from sheet1 and sheet2 to sheet3 and loop

    sagroy,

    Welcome to the forum.

    I have added code tags to your post. As per forum rule 3, you need to use them whenever you put any code in your post. Please add them in future. If you need more information on how to use them, check my signature below this post.

  5. #5
    Registered User
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,164

    Re: copy and paste from sheet1 and sheet2 to sheet3 and loop

    Please mark your thread as solved.

    Select Thread Tools-> Mark thread as Solved. To undo, select Thread Tools-> Mark thread as Unsolved.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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