VBA (Macros) Code Examples Add-in - Free Download

excel vba examples free download

AutoMacro has been used by employees of these organizations. These organizations do not endorse, approve, sponsor, or otherwise have any affiliation with this website, Spreadsheet Boot Camp LLC, or ToolFive Software LLC.

About the Add-in

Our free VBA add-in installs directly into the VBA Editor (see above).

It contains 150 ready-to-use VBA Macro code examples for Excel. Simply click your desired code example and it will insert directly into your module:

vba add-in code examples


Click the download button to download our free VBA add-in for Excel!

Important! Read the Walkthrough below. It contains important information.


The macro code examples add-in was designed entirely with VBA. This can be convenient because you don't need to install anything, but VBA has limitations. As a result of these limitations, the add-in will stop functioning periodically (note: this happens when VBA "loses focus", often as a result of code errors).

To help, we built in a "reset" button:

vba excel download

To activate the reset, go to Excel and click the AutomateExcel.com Ribbon > Restore VBA Add-in.

If you find the add-in useful, you'll love our premium VBA add-in (more information below). The premium add-in is not built with VBA and doesn't require any resets. It has many more (better organized) code fragments, VBA code generators, the ability to save your own code, and much more....


1. Download the file above

2. Follow these directions to install an Excel Add-in.

3. If you encounter an error "Trust access to the VBA project object model is disabled" then you must update the following settings

VBA Add-in FAQs

How to download VBA For Excel?

All versions of Excel already come with VBA installed. Use shortcut ALT + F11 to open the VBA Editor.

How to install Excel Add-ins?

Make sure the Developer Ribbon is installed. Then go to Developer > Excel Add-ins > Browse to select and install your add-in.

What is the VBA Code Examples Add-in?

The VBA Code examples add-in is a free add-in for Excel / VBA that comes with 150+ ready-to-use VBA code examples & macros.

AutoMacro - The Ultimate VBA Add-in

AutoMacro is an add-in that installs directly into the Visual Basic Editor:

excel vba add ins download

The add-in comes loaded with code generators, hundreds of macro code examples, the ability to create your own code library, and other time-saving tools.

Join the Hundreds of Professionals Who Use AutoMacro

"I use it almost every day. A great tool for getting things done, but also a great tool for learning how to do things! This is one purchase this year I have no regrets about."

Galen - USA

AutoMacro Features

Code Generators

Code Generators build code from scratch via visual interfaces!

vba code builder
vba code library builder

Code Library

300 Ready-to-use code examples & VBA macros.


Save your own frequently used code and share with team members.

Coding Tools

VBA Coding tools to improve the out of date Visual Basic Editor.

Speed up your workflow with tools to navigate, debug, format and more.

vba code tools
vba interactive tutorial

VBA Tutorial

Our premium VBA add-in contains a free VBA tutorial.

Just download AutoMacro and you'll have access to the tutorial.

Why Wait? Order Now


Simple version for beginners

1 User - 1 PC

Interactive VBA Tutorial
100 ready-to-use code examples for Excel
Procedure, Loops, & Copy Paste Builders
All other code generators
Coding tools
Create your own code library
Transfer Activations to other PCs
Access to new features & updates


One-time fee

Upgrade Anytime!


Tools for serious developers & more

1 User - 3 Transferable PCs & Updates

Interactive VBA Tutorial
Hundreds of ready-to-use code examples
Procedure, Loops, & Copy Paste Builders
All other code generators
Coding tools
Create your own code library
Transfer activations to other PCs
Access to new features & updates

$169 +

One-time fee + $20 Annual (starts a year from now)

Upgrade Anytime!

Customer Reviews

Other Information


No - AutoMacro generates VBA code. Once the code is generated: you can edit the code or copy and paste the code to another document. 

You can send your spreadsheet to anyone else and they will be able to use the generated code. AutoMacro does not need to be installed for the code to run.

We have a 30-day, no-questions-asked, 100% money-back guarantee. If you’re unsatisfied for any reason, let us know and we will refund your order!

Yes! You can download AutoMacro here: https://www.automateexcel.com/automacro/download-walkthrough2. Most of the features are disabled until you enter a License Code, but you can verify that it works properly on your computer. If for some reason it doesn't install properly, let us know: support@toolfivesoftware.com.

Yes! AutoMacro works in many corporate environments. It was designed to be as unobtrusive as possible and should install without the need for "admin privileges".

AutoMacro was designed to work on all Microsoft Windows systems (7,8,10, etc. and 32-bit or 64-bit). It will also work on all versions of Microsoft Office (2007 to present), including 64-bit Microsoft Office.

AutoMacro also works on some Mac setups running Windows OS. However, it will not work on any versions of Excel for Macs.

We recommend installing the trial version to see if your setup is compatible. (Make sure to read the Troubleshooting section of the Download page if you encounter any issues).

Your company may have an allowance that will reimburse you for productivity tools like AutoMacro. This is the case for some of our users. Ask your boss, HR, or IT!

The Beginner version entitles you to a single-use license code valid for 1 computer. The Developer version is valid for 3 computers for which you are the primary user. With the Developer+ version you can transfer activations between computers, allowing AutoMacro to be installed on any 3 computers at one time.

Yes! AutoMacro functions in any program with the Visual Basic Editor.

AutoMacro has specific code examples for Excel, Access, Outlook, Word, and PowerPoint.

Switching Office versions is not a problem.

AutoMacro should continue to work with any new Office versions. Unless you switch bit version (32-bit vs. 64-bit).  If you switch bit versions, simply uninstall AutoMacro, download and install the correct bit version.

Your license will continue to work.

Code Library

VBA Code Library: Easy access to 230+ ready-to-use code fragments and the ability to create your own code library.

Save Your Own Code

Create your own code library. Organize into folders. Share with colleagues.
Learn More


Toggle the most-used Excel / VBA settings.
Learn More

Keyboard Shortcuts

All code accessible via keyboard shortcuts. Simply look at underlined letters.
Learn More


Code for working with files and folders.
Learn More


Toggle the most-used Excel / VBA settings.
Learn More

Much More!

Ifs, Case Selects, Loops, Fors, MessageBoxes, Text, Dates, Times, and ready-to-use functions.
Learn More

Code Tools

AutoMacro's Coding Tools and Utilities make coding in VBA easier.
Use the tools to navigate, edit, format, and debug your code.

Formatting Tools

  • Comment / Uncomment multiple lines
  • Code indenter
  • Remove excess blank lines

Learn More

Navigation Tools

  • Back / Forward Buttons
  • Create bookmarks and goto with shortcut keys
  • Close all windows

Learn More

Debug Excel Model

  • Review all ranges used in VBA. Identify problems.
  • List all procedures, code, and where used.
  • Scan for formula errors
  • & more

Learn More

Misc. Utilities

  • Sort code
  • Show line numbers
  • Mass import / export of code modules
  • Copy & Paste UserForm controls & their code

Learn More

Code Generator

VBA code generators build code from scratch with visual interfaces.
Minimal coding knowledge required.

Loop Builder

Build code to loop through objects, performing actions when certain criteria are met.
Learn More

Array Builder

Create arrays, collections, and dictionaries from scratch and quickly manipulate them..
Learn More

MessageBox Builder 

Create professional looking MessageBoxes and Inputboxes with an easy to use visual interface.
Learn More

Procedure Builder

Create VBA procedures with your desired settings. Great for Beginners who don't know what settings can be used in procedures!
Learn More

File Builder

Generate procedures to loop through files in a folder, performing actions on files that meet certain criteria. Great for merging together multiple files.
Learn More

Format Builder

Quickly create a preview number formats in VBA.
Learn More

Join the Hundreds of Professionals Who Use AutoMacro

"Great product, haven’t stopped using it since I purchased it. It doesn’t just write your code, it teaches as you go!"

Tony D - United Kingdom

Steve Rynearson:
Creator of AutoMacro

Over the years, I've spent countless hours searching online for example code and adapting that code to my needs.

I often found myself clicking the same links and copying the same code. I thought there has to be a better way!

AutoMacro is the ultimate VBA Code Helper! It eliminates much of the need to search online for code. Instead simply use the menus to select pre-built code or use the builders to generate code for your exact needs.

Additionally, the coding tools will save you time and help you develop more professional looking code.

For anyone coding VBA, AutoMacro is a life-saver. You'll code much faster, develop more professional code, and learn VBA much faster (if you're not already an expert).