+ Reply to Thread
Results 1 to 5 of 5

Copy data from different files into 1 workbook under relevant column heading.

  1. #1
    Registered User
    Join Date
    03-16-2009
    Location
    Sydney
    MS-Off Ver
    Excel 2003
    Posts
    7

    Copy data from different files into 1 workbook under relevant column heading.


    Hi,

    I would be having approximately 50 workbooks containing values on different sheets and in different columns. The requirement is that I need to consolidate corresponding values of first column into the main workbook columns.

    Also, the files from which data would be copied should go under respective column's heading.

    I have attached the files with this post. Please help me as I need it very urgently. Thanks to all in advance who'd reply!

    Main workbook name is "Consolidate"
    Sample files are "1PS10", "2PS11", "3.PS12" and "4PS13."

    PS: It would be great if you can give comments for all crucial lines as I'm novice to VBA programming.

    Regards,
    Novice


    Attached Files Attached Files
    Last edited by VBA Noob; 03-18-2009 at 02:58 AM.

  2. #2
    Registered User
    Join Date
    02-17-2009
    Location
    USA
    MS-Off Ver
    Excel 2007
    Posts
    34

    Re: Copy data from different files into 1 workbook under relevant column heading.

    Having a hard time figuring out whether you just need a program to copy and paste data, or whether you need a program that figures out which file to open, opens it then figures out where the data is (what sheet and column)......

    this will copy data from A to Z in one open workbook and paste it into another:
    Please Login or Register  to view this content.

  3. #3
    Forum Contributor
    Join Date
    02-27-2008
    Posts
    764

    Re: Copy data from different files into 1 workbook under relevant column heading.

    Hi
    Your details are insufficient. Samples provided should preferably reflect the original data in data type. save the attached file in the same folder as PS11 ... series files. and run the macro
    ravi
    Attached Files Attached Files

  4. #4
    Registered User
    Join Date
    03-16-2009
    Location
    Sydney
    MS-Off Ver
    Excel 2003
    Posts
    7

    Re: Copy data from different files into 1 workbook under relevant column heading.

    Hi buddy, thanks for your help I was able to work it out. Thanks!

    Quote Originally Posted by dustycrockett View Post
    Having a hard time figuring out whether you just need a program to copy and paste data, or whether you need a program that figures out which file to open, opens it then figures out where the data is (what sheet and column)......

    this will copy data from A to Z in one open workbook and paste it into another:
    Please Login or Register  to view this content.

  5. #5
    Registered User
    Join Date
    03-16-2009
    Location
    Sydney
    MS-Off Ver
    Excel 2003
    Posts
    7

    Re: Copy data from different files into 1 workbook under relevant column heading.

    Hi Ravi, thanks for your help I was able to work it out with your code. Thanks!


    Quote Originally Posted by ravishankar View Post
    Hi
    Your details are insufficient. Samples provided should preferably reflect the original data in data type. save the attached file in the same folder as PS11 ... series files. and run the macro
    ravi

+ 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