Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Excel Developer Reference |
You can use the Cells property to refer to a single cell by using row and column index numbers. This property returns a Range object that represents a single cell. In the following example, Cells(6,1)
returns cell A6 on Sheet1. The Value property is then set to 10.
|
The Cells property works well for looping through a range of cells, because you can substitute variables for the index numbers, as shown in the following example.
|
![]() |
---|
If you want to change the properties of (or apply a method to) a range of cells all at once, use the Range property. For more information, see Refer to Cells and Ranges by Using A1 Notation. |
See Also