Chapter 7Using Array Variables

In this chapter, you'll learn how to use arrays—containers that can store multiple values at the same time. An array is a kind of super-variable.

You'll start by examining what arrays are and what you use them for. You'll then examine how to create them, populate them, and erase them. Along the way, you'll look at how to resize an array to make it able to contain more (or fewer) values and how to specify the scope for an array. (It's similar to the techniques for variables we explored in Chapter 6, “Working with Variables, Constants, and Enumerations.”) And you'll learn how to determine, while your macro executes, whether a particular variable name represents an array or a just an ordinary, single-value variable. ...

Get Mastering VBA for Microsoft Office 365, 2019th Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.