+ Reply to Thread
Results 1 to 3 of 3

copy & paste data from multiple workbooks to new workbook in a folder

  1. #1
    Registered User
    Join Date
    04-19-2012
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2010
    Posts
    49

    copy & paste data from multiple workbooks to new workbook in a folder

    Hi,

    I am trying to have a vb code for copy & paste data from multiple worksheets to new work book called as "ConsolidatedDetails". All multiple workbooks has three sheets each and macros have to copy & paste data from all three sheets. If there is no data in any of the three sheets it should ignore and move to the next file. Since the data is copying from multiple workbooks, the macro should be able to identify the last row in consolidated details and have to continue from all the files.

    The data varies in all workbooks and file names are not constant. Based on the selection of files, the data has to be copied. I am using excel 2003 and the folder path is c:\trial\filename.xls


    please let me know how I can do this.
    Last edited by Ignesh; 04-25-2012 at 04:24 AM. Reason: Adding additional information

  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 data from multiple workbooks to new workbook in a folder

    Couple of questions -

    Should the data from all the 3 sheets be consolidated into 1 sheet or 3 separate sheets?
    What do you mean by based on selection of files, the data has to be copied?
    Will there be any other files in the folder other than the ones to be copied?

    Can you upload a sample of one of the files and also of the expected output file?
    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
    04-19-2012
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2010
    Posts
    49

    Re: copy & paste data from multiple workbooks to new workbook in a folder

    the data will be in two sheets, namely sheet1 & sheet2. The data from sheet1 & sheet 2 has to be consolidate to my "Consolidation" file. The data as is has to get cut & paste to consolidation to the appropriate sheets of 1 & 2. File names will vary and all files in a particular folder need to have the data moved to consolidation.
    Attached Files Attached Files

+ 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