The information in this article applies to:
SUMMARYTo select multiple ranges on a spreadsheet from a Microsoft Excel macro, it is necessary to separate the ranges you want to select with a comma and either enclose them with a set of parentheses within the SELECT statement, or to enclose the reference in quotation marks. MORE INFORMATION
The SELECT statement takes two arguments. The first argument is the
cell or range of cells you want to select. The second argument is the
cell in the range you want to make the active cell.
ExampleTo perform a multiple selection in a Microsoft Excel macro to select ranges A1:A5 and C1:C5 on the active worksheet, use the following SELECT statement in your macro:
To perform the same action using quoted references, use:
REFERENCES
"Function Reference," version 4.0, pages 378-381
Additional query words: 2.0 2.00 2.01 2.1 2.10 2.2 2.20 2.21 3.0 \* 5x Tech_Review: edb MacXL5 briance
Keywords : |
Last Reviewed: October 25, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |