
- English
- ePUB (mobile friendly)
- Available on iOS & Android
Mastering VBA for Microsoft Office 2013
About this book
A unique, comprehensive guide to creating custom apps with VBA
Automating computing tasks to increase productivity is a goal for businesses of all sizes. Visual Basic for Applications (VBA) is a version of Visual Basic designed to be easily understandable for novice programmers, but still powerful enough for IT professionals who need to create specialized business applications. With this invaluable book, you'll learn how to extend the capabilities of Office 2013 applications with VBA programming and use it for writing macros, automating Office applications, and creating custom applications in Word, Excel, PowerPoint, Outlook, and Access.
- Covers the basics of VBA in clear, systematic tutorials and includes intermediate and advanced content for experienced VB developers
- Explores recording macros and getting started with VBA; learning how to work with VBA; using loops and functions; using message boxes, input boxes, and dialog boxes; creating effective code; XML-based files, ActiveX, the developer tab, content controls, add-ins, embedded macros, and security
- Anchors the content with solid, real-world projects in Word, Excel, Outlook, PowerPoint, and Access
Covering VBA for the entire suite of Office 2013 applications, Mastering VBA for Microsoft Office 2013 is mandatory reading.
Trusted by 375,005 students
Access to over 1 million titles for a fair monthly price.
Study more efficiently using our study tools.
Information
- Chapter 1: Recording and Running Macros in the Office Applications
- Chapter 2: Getting Started with the Visual Basic Editor
- Chapter 3: Editing Recorded Macros
- Chapter 4: Creating Code from Scratch in the Visual Basic Editor
- Record a macro
- Assign a macro to a button or keyboard shortcut
- Run a macro
- Delete a macro
What Is VBA and What Can You Do with It?
- You can record a macro that automatically carries out a series of actions that you frequently perform. Let's say that you often edit Word documents written by a co-worker, but she sets the zoom level to 100. You prefer a zoom level of 150. All you need to automatically fix this is this VBA code:
ActiveWindow.ActivePane.View.Zoom.Percentage = 150
- You can write code that performs actions a certain number of times and that makes decisions depending on the situation in which it is running. For example, you could write code that takes a series of actions on every presentation that's open in PowerPoint.
- You can have your macros interact with the user by displaying forms, or custom dialog boxes, that enable the user to make choices and specify settings while the macro is running. For example, you might display a set of formatting optionsâshowing captioned controls such as check boxes and option buttonsâthat the user can select. Then when the user closes the dialog box, your macro takes appropriate actions based on the user's input.
- You can take actions via VBA that you can't take (or take easily) by directly manipulating the user interface. For example, when you're working interactively in most applications, you're limited to working with the active fileâthe active document in Word, the active workbook in Excel, and so on. By using VBA, you can manipulate files that aren't active.
- You can make one application manipulate another application. For example, you can make Word place a table from a Word document into an Excel worksheet.
The Difference between Visual Basic and Visual Basic for Applications
Understanding Macro Basics
Table of contents
- Cover
- Acknowledgments
- About the Author
- Introduction
- Part 1: Recording Macros and Getting Started with VBA
- Part 2: Learning How to Work with VBA
- Part 3: Making Decisions and Using Loops and Functions
- Part 4: Using Message Boxes, Input Boxes, and Dialog Boxes
- Part 5: Building Modular Code and Using Classes
- Part 6: Programming the Office Applications
- Appendix: The Bottom Line
Frequently asked questions
- Essential is ideal for learners and professionals who enjoy exploring a wide range of subjects. Access the Essential Library with 800,000+ trusted titles and best-sellers across business, personal growth, and the humanities. Includes unlimited reading time and Standard Read Aloud voice.
- Complete: Perfect for advanced learners and researchers needing full, unrestricted access. Unlock 1.4M+ books across hundreds of subjects, including academic and specialized titles. The Complete Plan also includes advanced features like Premium Read Aloud and Research Assistant.
Please note we cannot support devices running on iOS 13 and Android 7 or earlier. Learn more about using the app