Excel Ranges





techstore
LQ Net Home







   Excel Links

Working with Ranges

printpage    Printer Friendly Page

Ranges are a very important part of the Excel Object.
You will use Ranges more often then any other object.

A Range can be as small as a singe cell, or as large as a group of cells that can span several worksheets.

Define a Range
This range contains the single cell at D5:

This range contains cells A1 to C3:

Define a Range Using a cell Reference
With a cell reference, the row is listed first, then the column.
In this example, the cell at row 5, column 3 is C5.

Define a Range using Cell references
In this example, the cell at column 4, row 2 is D2.
The cell at column 6, row 5 is F5.

Copy a Range
Copy the range in cells A1 to C3 and copy it to the Range starting at D5.
This will copy the range to D5 to F8.

Cut a Range

Delete a Range

Select a Range

Name a Range


Assign a variable to a Range

In this example, the Range object rg is set to cells A1:D5 on the worksheet assigned to the variable rev.


















Copyright © 2006-2009, LQ Systems,Inc. All rights reserved.