+ Reply to Thread
Results 1 to 2 of 2

Merge data from all workbooks in folder.

  1. #1
    Forum Contributor
    Join Date
    12-14-2017
    Location
    birmingham, england
    MS-Off Ver
    2016
    Posts
    102

    Merge data from all workbooks in folder.

    Hey,

    I need a Macro that will search for the term "ORI" in a particular sheet, lets say Sheet1 as an example. It will then copy the row that that cell appears on and paste it on a new master sheet.
    It will do this for all the workbooks in a particular folder and paste them under each other on one sheet on the master.

    Hope that makes sense.

    Ive used similar macros in the past, that asks you to specify a particular folder and it extracts all of the information from each sheet in one go, but i wanted to only copy the lines where a cell contains "ORI"

    Any help would be much appreciated.

    Thank you!

    Marc

  2. #2
    Forum Expert CK76's Avatar
    Join Date
    06-16-2015
    Location
    ONT, Canada
    MS-Off Ver
    Office 365 ProPlus
    Posts
    5,882

    Re: Merge data from all workbooks in folder.

    You have Excel 2016. Rather than using VBA code, I'd recommend use of Get & Transform (PowerQuery).

    Use Get Data -> From File -> From Folder. It will give you dialog menu to combine workbooks in a folder.

    Once all data are appended to single table using the menu, you can then filter for "ORI" before loading it back to worksheet.

    Have a read of links.
    https://support.office.com/en-us/art...8-6a00041c90e4
    http://excelunplugged.com/2018/02/13...i-bulletproof/
    ?Progress isn't made by early risers. It's made by lazy men trying to find easier ways to do something.?
    ― Robert A. Heinlein

+ 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. [SOLVED] Merge multiple workbooks stored in a folder
    By abulkhairi in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 11-05-2018, 09:42 AM
  2. Merge 3 workbooks from a folder into one workbook
    By IonutC in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 09-04-2017, 05:00 PM
  3. VBA to merge workbooks in a folder
    By PRS25 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 05-31-2017, 02:06 AM
  4. Replies: 9
    Last Post: 08-04-2016, 06:40 AM
  5. Merge multiple workbooks & move each merged worksheet into another folder
    By Dahlia in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 01-14-2016, 11:56 AM
  6. [SOLVED] Merge a range from all workbooks in a folder to one Master Sheet
    By ACALEX in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-02-2014, 11:05 AM
  7. Merge workbooks in a folder and rename sheets to previous filenames
    By zej in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-11-2013, 10:19 AM

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