How to Populate an Array with a Discontiguous Range (149831)
The information in this article applies to:
- Microsoft Excel 2000
- Microsoft Excel 97 for Windows
- Microsoft Excel for Windows 95
- Microsoft Excel for Windows 5.0
- Microsoft Excel 98 Macintosh Edition
This article was previously published under Q149831 SUMMARY
To populate an array using Microsoft Visual Basic for Applications in
Microsoft Excel, you need to iterate through the range object to populate
an array with the data if the range object is discontiguous (whether it is
a selection, range name, or the reference).
REFERENCES
"Visual Basic User's Guide," version 5.0, Chapter 6, "Working with Visual
Basic Code in Procedures"
For more information about looping in Microsoft Excel version 7.0, click
Answer Wizard on the Help menu, and type the following:
For more information about looping in Microsoft Excel version 5.0, click
the Search button in Help and type:
Modification Type: | Minor | Last Reviewed: | 10/11/2006 |
---|
Keywords: | kbdtacode kbhowto kbProgramming KB149831 |
---|
|