+ Reply to Thread
Results 1 to 3 of 3

Merging multiple files into one?

  1. #1
    Registered User
    Join Date
    08-27-2012
    Location
    Santa Ana, CA USA
    MS-Off Ver
    Excel 2010
    Posts
    43

    Merging multiple files into one?

    Greetings, all!

    As the title would imply, I am looking to routinely merge 5 (satellite) workbooks with one worksheet each into a single (master) also with one worksheet. The satellite files will have varying amounts of data. Basically, the code would need to select all rows with a value in column "A" (from column "A" to column "S") in the satellite files, then cut and paste the values into the first empty row of the master file.

    There doesn't need to be any sorting and the worksheets are free of any formatting. The VBA would ideally be a standalone workbook whose only purpose would be to perform the merging. In the thread title I mention "routinely", and I was just planning on using Task Scheduler to open/close the standalone workbook every night (with workbook.open being the event that runs the code). I was trying to avoid a wall of text but if exactly what it's for would help let me know.

    Any help would be greatly appreciated.

    Thank you!

  2. #2
    Forum Contributor
    Join Date
    06-22-2011
    Location
    somerset
    MS-Off Ver
    365
    Posts
    328

    Re: Merging multiple files into one?

    I think it would probably be quicker to use a sort on column A of each sheet and then copy A1:A[bottom] than use a for each cell in A:A if not blank copy.
    Sub Reputation()
    Dim Problem as Variant
    Dim Reputation as Integer
    For Each Problem in Forum.Threads
        If Problem.Title = "*[Solved]*" and Solver.Name = "Leon V (AW)" Then Reputation = Reputation + 1
    Next Problem
    End Sub

  3. #3
    Forum Contributor
    Join Date
    06-22-2011
    Location
    somerset
    MS-Off Ver
    365
    Posts
    328

    Re: Merging multiple files into one?

    Try
    Please Login or Register  to view this content.
    Last edited by Leon V (AW); 03-17-2014 at 12:59 PM. Reason: fix for PERSONAL.XLSB

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Merging Multiple Files
    By nigel1 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 12-12-2013, 01:05 AM
  2. Merging multiple files into one
    By psanghvi in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 11-20-2011, 12:56 PM
  3. Merging multiple .xls files
    By Tim@Work in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 05-11-2011, 12:30 PM
  4. Merging multiple files into one master
    By vancoservices in forum Excel General
    Replies: 2
    Last Post: 07-08-2010, 03:38 PM
  5. merging multiple files
    By ILXCEL in forum Excel General
    Replies: 1
    Last Post: 03-27-2006, 01:20 PM

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