Preface
“Yeah, so I helped the Excel team with this. Excited that it’s out!” This was the message that Guido van Rossum—the creator of Python and, at the time, a Microsoft employee—posted on X on August 22, 2023. His post included a link to the official announcement of Python in Excel. So how did we get here?
In the early days of Excel, Visual Basic for Applications (VBA) was the only choice to program and extend Microsoft Excel as an end user. VBA is a one-stop shop, as it allows you to:
-
Write macros that run at the click of a button, e.g., to add a new worksheet with a report
-
Write custom functions (also called user-defined functions) that you can call from worksheet cells
-
Build your own add-ins to provide automation features and custom functions across workbooks
With the growing importance of the internet and mobile platforms, Microsoft had to make Excel work across these new environments. Today, Excel runs on Windows, macOS, Android, iOS, and—most importantly—on the web. However, ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access