+ Reply to Thread
Results 1 to 7 of 7

copy from many sheets to one sheet

  1. #1
    Registered User
    Join Date
    06-18-2012
    Location
    rsa
    MS-Off Ver
    Excel 2007
    Posts
    18

    copy from many sheets to one sheet

    please help! I have a spreadsheet with data for 15 minute intervals over one day, and each day is in a separate sheet. I want to copy from these daily sheets to one sheet so that all the information is in a consecutive format. Can someone help with this.

  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 from many sheets to one sheet

    Do you want the sheetname to appear along side each row that has been copied, so you know from which sheet the data has come?

    In which sheet should the data be consolidated?

    After running the macro once, what if you want to run the macro again? Should the data in the consolidated sheet be cleared and re-input?
    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
    06-18-2012
    Location
    rsa
    MS-Off Ver
    Excel 2007
    Posts
    18

    Re: copy from many sheets to one sheet

    thanks for the quick reply.

    Yes, if i could have the sheet name that woudl be helpful. but not esssential. I just want each days data in one column so that I can copy it all and paste it in another sheet to make charts. it doesnt matter where or shich sheet this consolidated data goes to, as long as I can copy it.
    No, I will only run it once per workbook. I am just trying to extract the data.

    thank you so much

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

    Re: copy from many sheets to one sheet

    So which columns do you want copied?

  5. #5
    Registered User
    Join Date
    06-18-2012
    Location
    rsa
    MS-Off Ver
    Excel 2007
    Posts
    18

    Re: copy from many sheets to one sheet

    i need both column A and B copied. Ideally i need continuous data, i.e. the time in column A with the data in Column B and the date in another column. i just want one sheet with the data in, not each day on a separate sheet. I hope this make sense. thanks again for helping me

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

    Re: copy from many sheets to one sheet

    Try this code
    Please Login or Register  to view this content.
    Copy the Excel VBA code
    Select the workbook in which you want to store the Excel VBA code
    Hold the Alt key, and press the F11 key, to open the Visual Basic Editor
    Choose Insert | Module
    Where the cursor is flashing, choose Edit | Paste

    To run the Excel VBA code:
    Choose View | Macros
    Select a macro in the list, and click the Run button.

  7. #7
    Registered User
    Join Date
    06-18-2012
    Location
    rsa
    MS-Off Ver
    Excel 2007
    Posts
    18

    Re: copy from many sheets to one sheet

    Hi Arlette - WOW! that works perfectly. Thank you very much. I really appreciate the help. i was about to pull my hair out doing this all manually.

+ 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