Click to Rate and Give Feedback
MSDN
MSDN Library
Office Development
Office 2003
Reference
Methods
S
 SpecialCells Method [Excel 2003 VBA...
Collapse All/Expand All Collapse All
Office Excel 2003 VBA Language Reference
SpecialCells Method [Excel 2003 VBA Language Reference]

Returns a Range object that represents all the cells that match the specified type and value. Range object.

expression.SpecialCells(Type, Value)

expression Required. An expression that returns one of the objects in the Applies To list.

Example

This example selects the last cell in the used range of Sheet1.

Worksheets("Sheet1").Activate
ActiveSheet.Cells.SpecialCells(xlCellTypeLastCell).Activate
		


Applies to | Range Collection


© 2009 Microsoft Corporation. All rights reserved. Terms of Use | Trademarks | Privacy Statement
Page view tracker