Reading & writing workbooks

Many sheets & many files

Combine a folder of workbooks, split one by value, copy and reorder sheets.

Combining files: a folder of regional workbooks is read in a loop, concatenated with a source column, and written as one workbook.Combining files: a folder of regional workbooks is read in a loop, concatenated with a source column, and written as one workbook.many workbooks in, one out — or the other way roundnorth.xlsxsouth.xlsxeast.xlsx …Loop + concatadd a source columnalign the columnscombined.xlsxone tableor one sheet each

Start with the full guides

The long-form treatment of many sheets & many files, with the reasoning the shorter pages assume.

Step-by-step how-tos

One task each, with code you can copy, run and adapt.

When it breaks

The errors this topic produces, with the cause explained rather than just the fix.

Follow it through a track

Prefer an ordered route? These tracks cover many sheets & many files along the way, in the order that builds on itself.

Related topics

Subjects that keep turning up on the same pages as this one, most overlap first.

Many sheets & many files is part of Reading & writing workbooks.