Microsoft Excel VBA and Macros (Microsoft 365 and Excel 2024), 1st edition

Published by Microsoft Press (September 19, 2025) © 2026

  • Tracy Syrstad
  • Bill Jelen
Products list
  • Available for purchase from all major ebook resellers, including InformIT.com
Products list
  • Available for purchase from all major ebook resellers, including InformIT.com

Title overview

Renowned Excel experts Bill Jelen (MrExcel) and Tracy Syrstad explain how to build more powerful, reliable, and efficient Excel spreadsheets.

Use this guide to automate virtually any routine Excel task: save yourself hours, days, maybe even weeks. Make Excel do things you thought were impossible, discover macro techniques you won’t find anywhere else, and create automated reports that are amazingly powerful. Bill Jelen and Tracy Syrstad help you instantly visualize information to make it actionable; capture data from anywhere and use it anywhere; and automate the best new features in Excel in Microsoft 365. You’ll find simple, step-by-step instructions, real-world case studies, and 50 workbooks packed with examples and complete, easy-to-adapt solutions.

By reading this book, you will gain the following skills:

  • Confident VBA programmer: Readers will learn to write and understand VBA code, automating complex Excel tasks.
  • Data manipulation mastery: They'll gain the ability to import/export data, interact with cells programmatically, and manipulate data efficiently.
  • Advanced reporting automation: Readers will learn to generate and update charts and pivot tables through code, creating powerful automated reports.
  • One-click data analysis: They'll develop the skills to build custom buttons that transform raw data into comprehensive reports with a single click, streamlining their workflow.

The structure of the book is to provide an explanation of a concept followed by an example of how the concept would be used. Sample code in a chapter often builds up from previous samples in the same chapter. Larger code samples include comments so the user understands the progression of the program.

Table of contents

CHAPTER 1      Unleashing the power of Excel with VBA

CHAPTER 2      This sounds like BASIC, so why doesn’t it look familiar?

CHAPTER 3      Referring to ranges, names, and tables

CHAPTER 4      Laying the groundwork with variables and structures

CHAPTER 5      Looping and flow control

CHAPTER 6      R1C1 style formulas

CHAPTER 7      Event programming

CHAPTER 8      Arrays

CHAPTER 9      Creating custom objects and collections

CHAPTER 10   Userforms: An introduction

CHAPTER 11   Data mining with Advanced Filter

CHAPTER 12   Using VBA to create pivot tables

CHAPTER 13   Excel power

CHAPTER 14   Sample user-defined functions

CHAPTER 15   Creating charts

CHAPTER 16   Data visualizations and conditional formatting

CHAPTER 17   Dashboarding with sparklines in Excel

CHAPTER 18   Reading from the web using M and VBA

CHAPTER 19   Text file processing

CHAPTER 20   Automating Word

CHAPTER 21   Using Access as a back end to enhance multiuser access to data

CHAPTER 22   Advanced userform techniques

CHAPTER 23   The Windows Application Programming Interface (API)

CHAPTER 24   Handling errors

CHAPTER 25   Customizing the ribbon to run macros

CHAPTER 26   Creating Excel add-ins

CHAPTER 27   An introduction to creating Office Add-ins

Need help?Get in touch