+ Reply to Thread
Results 1 to 6 of 6

Macro - open files, copy & paste values

  1. #1
    Registered User
    Join Date
    02-23-2010
    Location
    London
    MS-Off Ver
    Excel 2003
    Posts
    17

    Macro - open files, copy & paste values

    Hi,

    Any help would be much appreciated.

    Scenario: I have a folder in my "C:/My Documnets:/test/" where I store excel files. On a weekly basis, on average, 8 files are received. The old files from the previous week are moved to another foler.

    I want to hold a "master" spreadsheet which will hold all the data submitted during the week. The data submitted are order forms for equipment. This "master" sheet should be stored in another folder.

    Going on this basis, I already hold a master sheet with roughly 40 columns of data. Previously this was populated manually, by openening the invidual worksheets submitted and copying and pasting the data into the master sheet.

    So ultimately, I want a macro that will, open the test folder, loop through all the files, copy certain cells from the files and paste them in the relevant columns in the "master" file.

    Hope that helps with the description, if not let me know.

    Thanks

  2. #2
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,090

    Re: Macro - open files, copy & paste values

    Copies of the workbooks would be helpful, or representative samples ... without any sensitive data but retaining the structure of the originals.

    Regards

  3. #3
    Registered User
    Join Date
    02-23-2010
    Location
    London
    MS-Off Ver
    Excel 2003
    Posts
    17

    Re: Macro - open files, copy & paste values

    Sorry it's not letting me upload anything, keeps crashing. The master sheet just conatins 40 columns of headings. e.g. region, sector, No of vans, deliery date, etc....

    and the forms that comes in, is a basic excel order form. all will be the same format, but the information that needs to be extracted is by row, so:

    Region: London
    Sector: North DSM
    No of vans required: 6
    Required Date: 21/10/2010

    etc. This information then needs to be copied from here and populated in the main database sheet.

  4. #4
    Registered User
    Join Date
    02-23-2010
    Location
    London
    MS-Off Ver
    Excel 2003
    Posts
    17

    Re: Macro - open files, copy & paste values

    Any one have any ideas.....

  5. #5
    Registered User
    Join Date
    02-23-2010
    Location
    London
    MS-Off Ver
    Excel 2003
    Posts
    17

    Re: Macro - open files, copy & paste values

    Thanks guys, real useful site!!!!

  6. #6
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,090

    Re: Macro - open files, copy & paste values

    You're welcome

+ 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