SpecialCells Method
Save Method
SaveAs Method
SaveAsODC Method
SaveAsXMLData Method
SaveCopyAs Method
SaveWorkspace Method
ScaleHeight Method
ScaleWidth Method
Scenarios Method
ScrollIntoView Method
ScrollWorkbookTabs Method
Select Method
SelectAll Method
SendFaxOverInternet Method
SendForReview Method
SendKeys Method
SendMail Method
SendMailer Method
SendToBack Method
SeriesCollection Method
ServerStart Method
ServerTerminate Method
SetBackgroundPicture Method
SetDefaultChart Method
SetEditingType Method
SetExtrusionDirection Method
SetLinkOnData Method
SetParam Method
SetPasswordEncryptionOptions Method
SetPhonetic Method
SetPosition Method
SetSegmentType Method
SetShapesDefaultProperties Method
SetSourceData Method
SetThreeDFormat Method
SetValue Method
Show Method
ShowAllData Method
Collapse the table of content
Expand the table of content
The document is archived and information here might be outdated

SpecialCells Method [Excel 2003 VBA Language Reference]

Office 2003

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.

XlCellType constantsValue
xlCellTypeAllFormatConditions. Cells of any format-4172
xlCellTypeAllValidation. Cells having validation criteria-4174
xlCellTypeBlanks. Empty cells4
xlCellTypeComments. Cells containing notes-4144
xlCellTypeConstants. Cells containing constants2
xlCellTypeFormulas. Cells containing formulas-4123
xlCellTypeLastCell. The last cell in the used range11
xlCellTypeSameFormatConditions. Cells having the same format-4173
xlCellTypeSameValidation. Cells having the same validation criteria-4175
xlCellTypeVisible. All visible cells12

XlSpecialCellsValue constantsValue
xlNumbers 1


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


Applies to | Range Collection

© 2016 Microsoft