Skip to Main Content
Business Solutions VBA and Macros for Microsoft® Office Excel® 2007
book

Business Solutions VBA and Macros for Microsoft® Office Excel® 2007

by Bill Jelen, Tracy Syrstad
August 2007
Beginner to intermediate content levelBeginner to intermediate
624 pages
14h 46m
English
Que
Content preview from Business Solutions VBA and Macros for Microsoft® Office Excel® 2007

Chapter 19. Arrays

IN THIS CHAPTER

An array is a type of variable that can be used to hold more than one piece of data. For example, if you have to work with the name and address of a client, your first thought might be to assign one variable for the name and another for the address of the client. Instead, consider using an array, which can hold both pieces of information—and not for just one client, but for hundreds.

Declare an Array

Declare an array by adding parentheses after the array name. The parentheses contain the number of elements in the array:

Dim myArray (2)

This creates an ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Business Solutions VBA for the 2007 Microsoft Office System

Business Solutions VBA for the 2007 Microsoft Office System

Paul McFedries

Publisher Resources

ISBN: 9780789736826Purchase book