+ Reply to Thread
Results 1 to 4 of 4

copy data in to different columns

  1. #1
    Registered User
    Join Date
    05-04-2007
    Posts
    2

    copy data in to different columns

    Hi,
    I have a workbook with multiple worksheets that all contain two columns of data with about 500 rows long. I wish to create vba code that will copy the data from all the work sheets and paste them in to the new worksheet whilst advancing the column location.

    for instance the data in sheet1 is A500:B500 and the data in sheet 2 is also A500:B500. I want to copy data in sheet 1 to a new sheet at columns A:B and data in sheet 2 into the new sheet at C:D colums. so the macro needs to increment the column by two every time and then paste the data from the next work sheet. there are about 500 sheets, each with data in the same place.

    hope this makes sence. look forward to your replys.

    jon

  2. #2
    Forum Expert mrice's Avatar
    Join Date
    06-22-2004
    Location
    Surrey, England
    MS-Off Ver
    Excel 2013
    Posts
    4,967
    Try this

    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    05-04-2007
    Posts
    2

    thanks

    hi,

    thnaks for the code, it does work well. but instead of puting the data in a new work book, work it be easy to rearange the code so that a new sheet is created in the same workbook and the data is placed in this new sheet?

    thank you, jon

  4. #4
    Forum Expert mrice's Avatar
    Join Date
    06-22-2004
    Location
    Surrey, England
    MS-Off Ver
    Excel 2013
    Posts
    4,967
    This will add a new sheet

    Please Login or Register  to view this content.

+ 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