Book description
Renowned Excel experts Bill Jelen (MrExcel) and Tracy Syrstad help you automate Excel tasks to get more done, faster than ever.
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 wont 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 Microsoft Excel. Youll 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:
Quickly master Excel macro development
Work more efficiently with ranges, cells, and formulas
Generate automated reports and quickly adapt them for new requirements
Learn to automate PivotTables to summarize, analyze, explore, and present data
Leverage more of Excel VBAs power with classes, collections, and Advanced Filter
Make the most of User-Defined Functions (UDFs), including new LAMBDA functions
Build sophisticated UserForm custom dialogs to collect data from other Excel users
Integrate data from the Internet, Access and SQL Server databases, and other sources
Automatically generate charts, visualizations, sparklines, and Word documents
Extend Excels power by controlling other Office programs and Windows itself
Create Office Add-ins to expand worksheet functionality or streamline retrieval of external information
Get started creating brand-new TypeScript applications for Excel Online
About This Book
For everyone who wants to get more done with Microsoft Excel in less time
For business and financial professionals, entrepreneurs, students, and others who need to efficiently manage and analyze data
Table of contents
- Cover Page
- Title Page
- Copyright Page
- Pearson’s Commitment to Diversity, Equity, and Inclusion
- Dedication
- Contents at a Glance
- Contents
- Acknowledgments
- About the Authors
- Introduction
- 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
- The Range object
- Referencing ranges in other sheets
- Referencing a range relative to another range
- Using the Cells property to select a range
- Using the Offset property to refer to a range
- Using the Resize property to change the size of a range
- Using the Columns and Rows properties to specify a range
- Using the Union method to join multiple ranges
- Using the Intersect method to create a new range from overlapping ranges
- Using the IsEmpty function to check whether a cell is empty
- Using the CurrentRegion property to select a data range
- Using the Areas collection to return a noncontiguous range
- Referencing tables
- Next steps
- Chapter 4. Looping and flow control
- Chapter 5. R1C1-style formulas
- Chapter 6. Creating and manipulating names in VBA
- Chapter 7. Event programming
- Chapter 8. Arrays
- Chapter 9. Creating classes and collections
- Chapter 10. Userforms: An introduction
-
Chapter 11. Data mining with Advanced Filter
- Replacing a loop with AutoFilter
- Advanced Filter—easier in VBA than in Excel
- Using Advanced Filter to extract a unique list of values
- Using Advanced Filter with criteria ranges
- Using Filter In Place in Advanced Filter
- The real workhorse: xlFilterCopy with all records rather than unique records only
- Next steps
-
Chapter 12. Using VBA to create pivot tables
- Understanding how pivot tables evolved over various Excel versions
- Building a pivot table in Excel VBA
- Using advanced pivot table features
- Filtering a data set
- Formatting the intersection of values in a pivot table
- Using the Data Model in Excel
- Using other pivot table features
- Comparing VBA to TypeScript
- Next steps
- 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
- Using early binding to reference a Word object
- Using late binding to reference a Word object
- Using the New keyword to reference the Word application
- Using the CreateObject function to create a new instance of an object
- Using the GetObject function to reference an existing instance of Word
- Using constant values
- Understanding Word’s objects
- Controlling form fields in Word
- Next steps
- 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
- What happens when an error occurs?
- Basic error handling with the On Error GoTo syntax
- Generic error handlers
- Training your clients
- Errors that won’t show up in Debug mode
- Errors while developing versus errors months later
- The ills of protecting code
- More problems with passwords
- Errors caused by different versions
- Next steps
- Chapter 25. Customizing the ribbon to run macros
- Chapter 26. Creating Excel add-ins
- Chapter 27. An introduction to creating Office add-ins
- Chapter 28. What’s new in Excel 365 and what’s changed
- Index
- Code Snippets
Product information
- Title: Microsoft Excel VBA and Macros (Office 2021 and Microsoft 365)
- Author(s):
- Release date: April 2022
- Publisher(s): Microsoft Press
- ISBN: 9780137521531
You might also like
book
Microsoft Excel Step by Step (Office 2021 and Microsoft 365)
The quick way to learn Microsoft Excel! This is learning made easy. Get more done quickly …
book
Microsoft Excel 365 Bible
Your personal, hands-on guide to the latest and most useful features in Microsoft Excel 365 Excel …
book
Microsoft Excel Inside Out (Office 2021 and Microsoft 365)
Conquer Microsoft Excel -- from the inside out! Dive into Microsoft Excel -- and really put …
video
Microsoft Excel: A Beginners' Guide to Pivot Tables in Excel
We need to analyze data these days since we live in a very data-driven world. Therefore, …