56 free macros indexedAll toolsHow to runBlogGitHub ↗

The Complete Guide to Excel Productivity Macros

Pillar guide to Excel productivity macros: workbook-wide operations, multi-sheet automation, navigation, and time-saving free macros for everyday work.

2026-04-28

A nine-step manual workflow on the left collapsing into a single one-click macro that combines, autofits, sorts, and exports

What "productivity in Excel" actually means

Most Excel productivity advice falls into two buckets. The first: keyboard shortcuts (Ctrl + ; for today's date, Ctrl + Shift + L for filter, etc.). Useful but small wins. The second: deep formula expertise (XLOOKUP, SUMIFS, INDEX/MATCH). Useful but doesn't help with the structural and navigation tasks that eat real time.

This guide is the third bucket: macros that automate the workbook-wide and multi-sheet operations that cost you minutes every week. Apply Freeze Panes to all 30 tabs in one click. Generate a clickable index for a giant workbook. Combine 50 monthly tabs into one consolidated dataset. Split a flat report into per-region tabs.

TL;DR — Key takeaways

  • Tab management (sort, list, hide, unhide, delete) accounts for a meaningful share of "where is that tab" time.
  • Workbook-wide formatting (freeze panes, autofit columns, find/replace) is built-in but per-tab; macros do it once.
  • Cross-tab data movement (combine, split, export to CSV) has no native single-click answer; macros fill the gap.
  • One-shot conversions (formulas to values, hyperlinks to text, prefix/suffix bulk-add) replace multi-step paste-special workflows.
  • These macros are free, run offline, and work on Mac and Windows Excel 2016+.

The 5 productivity macro categories

Most "I do this every week" Excel work falls into one of:

CategoryWhat it solvesExample macros
Tab managementTab order, visibility, navigationList All Sheet Names, Sort Sheets Alphabetically, Unhide All Sheets
Workbook-wide formattingApply same format to all tabsFreeze Top Row on All Sheets, AutoFit All Columns on All Sheets
Cross-tab data movementCombine or split data across tabsCombine All Sheets Into One, Split Sheet by Column, Export Each Sheet to CSV
Workbook-wide find/replaceReplace text across every sheetFind and Replace Across All Sheets, Bulk Find and Replace From Table
One-shot conversionsReplace multi-step paste-special workflowsConvert Formulas to Values, Add Prefix and Suffix to Cells, Bulk Add Hyperlinks

Tab management

Big workbooks live or die on navigation friction. The four macros that move the needle:

List All Sheet Names

Generates a clickable index sheet at position 1 with hyperlinks to every other tab plus a column showing which are hidden. For 30+ tab workbooks, this is the difference between "where's the consolidated view" emails and a self-navigable file.

Deep dive: How to Create a Table of Contents in Excel.

Sort Sheets Alphabetically

Reorders every tab A-to-Z or Z-to-A in one click. For long-lived workbooks where tab order accumulated organically, this restores findability in 5 seconds.

Deep dive: How to Sort Excel Sheet Tabs Alphabetically.

Unhide All Sheets

Reveals every hidden and very-hidden sheet at once. Critical when inheriting a workbook where you don't know what's there. Right-click > Unhide only handles regular hidden sheets one at a time; very-hidden sheets only show up in the VBA editor.

Deep dive: How to Unhide All Sheets at Once in Excel.

Delete All Hidden Sheets

After auditing, deletes every hidden tab in one confirmed pass. Useful for cleaning up before sharing externally.

Workbook-wide formatting

Excel applies most formatting to the active sheet only. To apply consistent formatting across 30 tabs, you click 30 times. The macros that fix this:

Freeze Top Row on All Sheets

Applies Freeze Panes at row 2 to every visible sheet so headers stay visible during scrolling. For a 30-tab workbook, the manual route is 30 trips through View > Freeze Panes.

AutoFit All Columns on All Sheets

Runs AutoFit on every column of every sheet. After a data refresh that pushes column widths out of whack, this is a one-click fix versus per-tab Ctrl+A and column-boundary double-click.

Cross-tab data movement

Excel's no-code data shuffling between tabs is awkward. The macros that fill the gap:

Combine All Sheets Into One

Stacks every sheet of the active workbook into a single new sheet, with a "Source" column tagging each row by its origin tab. For a workbook with one tab per month or per region, this consolidates in 1 second.

Deep dive: How to Combine Multiple Sheets Into One in Excel.

Split Sheet by Column

The reverse: takes one flat sheet and splits it into per-category tabs based on a chosen column.

Deep dive: How to Split a Sheet Into Separate Sheets by Column.

Export Each Sheet to CSV

For every visible sheet, writes a .csv file in the workbook's folder. For multi-tab workbooks feeding downstream systems that want CSVs, this batches in 2 seconds versus N trips through Save As.

Deep dive: How to Export Each Excel Sheet to a Separate CSV File.

Workbook-wide find/replace

Excel's Find and Replace has a hidden "Within: Workbook" option (under Options >> in the dialog), but it defaults to "Sheet" and the per-sheet count isn't reported. The macros that improve on this:

Find and Replace Across All Sheets

Prompts for find text, replace text, case sensitivity, and whole-cell match. Loops every sheet. Reports the total count.

Deep dive: How to Find and Replace Across All Sheets in Excel.

Bulk Find and Replace From Table

Reads a 2-column lookup table (find / replace pairs) and applies every pair to your data range in one pass. For migrations with 30+ substitutions (account code remaps, vendor name normalizations), this is dramatically faster than per-pair Find and Replace.

One-shot conversions

Multi-step Excel workflows that condense to a single macro click:

Convert Formulas to Values

Replace every formula in a selection with its current value, in place, preserving format. The Paste Special > Values workflow done right (no copy-paste shuffle, no destination overwrite risk).

Deep dive: How to Convert Formulas to Values in Excel.

Add Prefix and Suffix to Cells

Bulk-add text to the start and/or end of every cell, with text-format protection so leading + or 0 don't get auto-converted.

Deep dive: How to Add a Prefix or Suffix to Every Cell in Excel.

Bulk Add Hyperlinks

Convert every URL-shaped cell into a clickable hyperlink in one pass. The bulk version of click-cell-F2-Enter.

Deep dive: How to Convert Text URLs to Clickable Hyperlinks.

Insert Row Numbers

Fill a column with sequential static integers starting at any number. Faster than fill-handle drag for thousands of rows, more reliable than =ROW() formulas which shift on row delete.

A typical productive week with the macro toolkit

Monday morning: open the master forecasting workbook with 30 tabs.

About 30 seconds total. Pre-macro: 8 to 10 minutes of clicking.

Tuesday: weekly transactions export to consolidate from 12 monthly tabs.

About 5 seconds. Pre-macro: 10 minutes of copy-paste-stack.

Wednesday: vendor name change requires updating 12 tabs.

About 30 seconds. Pre-macro: 5 minutes of per-tab Ctrl+H.

Thursday: prep audit copy by freezing summary tab formulas.

About 90 seconds for 3 summary tabs. Pre-macro: 15 minutes of paste-special navigation.

Friday: export each region's tab as a CSV for the partner data load.

About 2 seconds. Pre-macro: 10 minutes of per-tab Save As.

Total time saved across the week: about 45 minutes. Across 50 weeks, just over 35 hours back per year.

What macros don't do for productivity

A few things macros aren't the right answer for:

  • Live recalculating models. Use formulas. Macros are one-shot.
  • Cross-system integration. Use Power Automate, Zapier, or a real programming environment.
  • Visual analytics dashboards. Use Power BI or Tableau.
  • Recurring scheduled tasks. Macros need a person to click Run.

Macros sit in the gap between "what Excel does natively" and "what a programmer would automate." They're for the everyday repetitive structural and navigation tasks that don't justify a full automation pipeline but cost real time when done by hand.

How to install any of these

Every macro at excelmacros.net is a free .xlsm file with one macro:

  1. Visit the tool's page.
  2. Click Download.
  3. Open the .xlsm in Excel. Click Enable Editing then Enable Macros.
  4. Press Alt + F8, pick the macro, click Run.

Full setup walkthrough at How to run our tools. About 30 seconds the first time.

Pairs that work well together

Some macros work best as chains:

Frequently asked questions

Are macros safe?

Each macro at excelmacros.net has its source code in a public repo. None of them touch the network, run shell commands, or write outside the workbook (with one exception: Export Each Sheet to CSV writes to disk in the workbook's folder). For the full safety story see How to Use Excel VBA Macros Without Knowing How to Code.

Will they work on Mac Excel?

Yes for almost all of them. The few exceptions are flagged on individual tool pages.

Can I run them from Excel for the web?

No. Excel for the web (browser version) doesn't support VBA macros. Macros run only in desktop Excel for Windows or Mac.

Can I customize them?

Yes. Each tool has a .bas file in the public repo. The code is plain text and short (50 to 150 lines). Edit, re-import, done.

What if a macro errors mid-run?

Most macros include error handling that pops a friendly message. The macro stops, your data is in whatever state it was at error time, and Ctrl+Z usually reverts.

What to do next

For data cleanup specifically, see The Complete Guide to Cleaning Up Data in Excel. For audit work on inherited models, How to Audit an Inherited Excel Workbook. For the full catalog by category, browse /category/productivity.