Search icon CANCEL
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
VBA Automation for Excel 2019 Cookbook

You're reading from   VBA Automation for Excel 2019 Cookbook Solutions to automate routine tasks and increase productivity with Excel and other MS Office applications

Arrow left icon
Product type Paperback
Published in Sep 2020
Publisher Packt
ISBN-13 9781789610031
Length 362 pages
Edition 1st Edition
Languages
Tools
Arrow right icon
Author (1):
Arrow left icon
Mike Van Niekerk Mike Van Niekerk
Author Profile Icon Mike Van Niekerk
Mike Van Niekerk
Arrow right icon
View More author details
Toc

Table of Contents (20) Chapters Close

Preface 1. Chapter 1: Getting Started with VBA 2. Chapter 2: Working with the VBA Editor FREE CHAPTER 3. Chapter 3: The VBA Object Model 4. Chapter 4: Working with Procedures 5. Chapter 5: Next Level Recording 6. Chapter 6: VBA Language Elements 7. Chapter 7: Working with Ranges 8. Chapter 8: Using Functions 9. Chapter 9: Implementing Program Flow 10. Chapter 10: Implementing Automation 11. Chapter 11: Handling Errors 12. Chapter 12: Debugging 13. Chapter 13: Creating and Modifying Dialog Boxes 14. Chapter 14: Creating UserForms 15. Chapter 15: UserForm Controls 16. Chapter 16: Creating Custom Functions 17. Chapter 17: Creating Word Documents with Excel VBA 18. Chapter 18: Working with PowerPoint in Excel VBA 19. Other Books You May Enjoy

Preface

Visual Basic for Applications (VBA) has been around for decades, and was upgraded in 2010 with the introduction of VBA 7 in Microsoft Office applications. Millions of users worldwide use VBA daily, making it indispensable for streamlining work within the Office Suite.

It is probably one of the easiest coding languages to learn, and unique in the sense that it is associated with specific applications. Where other coding languages can be used to create standalone programs, VBA will function only within the MS Office environment.

VBA's main purpose is to automate tasks in Microsoft Office products, and its most outstanding feature is its simplicity. Even if you know nothing about programming, you will see results within the first day.

Starting with the macro recorder, you can create your first code by clicking a record button, and the recorder will write code for every single step you execute. Experienced coders can write more effective code, yet it enables complete novices to automate lengthy and time-consuming processes. With this recorded code as the basis, you can become adventurous by making small changes, teaching yourself as you go along.

Another useful feature is that VBA can control one application from another. You can, for example, automatically create a report in MS Word or PowerPoint, from existing Excel data.

Companies other than Microsoft also use VBA to automate some tasks. These include ArcGIS, AutoCAD, CorelDraw, LibreOffice, SolidWorks, and WordPerfect.

This book is designed to teach you the language, first on an elementary level, and later moving to more advanced terrain. We start with recording a macro, then proceed to writing your own Sub procedures. Next, we teach you the object model and language elements, program flow, error handling, user forms for capturing data, and eventually creating custom functions.

Each chapter contains code samples to explain the principles taught in each recipe. As an added bonus, there are action videos to clarify each working sample.

lock icon The rest of the chapter is locked
Next Section arrow right
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at €18.99/month. Cancel anytime