Searches for the specified text according to the specified options, and returns an IRange representing the found cell or null if no cell is found.
'Declaration
Function Find( _
ByVal As System.String, _
ByVal As IRange, _
ByVal As FindLookIn, _
ByVal As LookAt, _
ByVal As SearchOrder, _
ByVal As SearchDirection, _
ByVal As System.Boolean _
) As IRange
'Usage
Dim instance As IRange
Dim what As System.String
Dim after As IRange
Dim lookIn As FindLookIn
Dim lookAt As LookAt
Dim searchOrder As SearchOrder
Dim searchDirection As SearchDirection
Dim matchCase As System.Boolean
Dim value As IRange
value = instance.Find(what, after, lookIn, lookAt, searchOrder, searchDirection, matchCase)
function Find(
: System.String;
: IRange;
: FindLookIn;
: LookAt;
: SearchOrder;
: SearchDirection;
: System.Boolean
): IRange;
function Find(
: System.String,
: IRange,
: FindLookIn,
: LookAt,
: SearchOrder,
: SearchDirection,
: System.boolean
) : IRange;
Parameters
- what
- Specifies the text to find.
- after
- Specifies the cell to start after within this range, or null to start after the top-left cell of this range.
- lookIn
- Specifies whether to search formulas or values.
- lookAt
- Specifies partial or complete match.
- searchOrder
- Specifies whether to search by rows or by columns.
- searchDirection
- Specifies whether to search forward (next) or backwards (previous).
- matchCase
- Specifies whether text searches should match case.
Return Value
Returns the next or previous cell which meets the specified criteria, or null if no cell is found.
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2