O'Reilly logo

Mastering VBA for Microsoft® Office 2010 by Richard Mansfield

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 7. Using Array Variables

In this chapter, you'll learn how to use array variables—variables that can each store multiple values at the same time. 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 contain more (or fewer) values, how to specify the scope for an array, and how to find out whether a variable is an array or a regular, single-value variable.

In this chapter you will learn to do the following:

  • Understand what arrays are and what you use them for

  • Create and use arrays

  • Redimension an array

  • Erase an array

  • Find out whether a variable is an array

  • Sort an array

  • Search an array

What Is an Array? ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required