by Edward T. Quinn (2 Submissions)
Category: Microsoft Office Apps/VBA
Difficulty: Beginner
Date Added: Wed 3rd February 2021
Rating: (2 Votes)
This code automatically merges multiple .xls files located in a single folder
into a single .xls file named Merge.xls. All of the original worksheets that were in those
workbooks are preserved. It only merges the worksheets that were visible. These merged
sheets are given consecutive numbers for names in the Merged.XLS file.
Inputs
User selects the file folder where the .xls files to be merged are located.
Assumes
find a file folder with some .xls files in it and you are ready to go. Must have MS Office Standard or better edition.
Code Returns
A message box is displayed at the end, Merge.xls file is produced or re-built
in the same folder which contains all of the worksheets that where in those workbooks.
Download Merge Excel Workbooks (21 KB)