Find Method
Searches for an unfiltered value and returns True if it is found.
Syntax
expression**.Find(Field, Test, Value, Next, MatchCase, TestID)**
*expression *Optional. An expression that returns an Application object.
Field Required String. The name of the field to search.
comparison strings
Comparison string | Description |
---|---|
"equals" | The value of Field equals Value. |
"does not equal" | The value of Field does not equal Value. |
"is greater than" | The value of Field is greater than Value. |
"is greater than or equal to" | The value of Field is greater than or equal to Value. |
"is less than" | The value of Field is less than Value. |
"is less than or equal to" | The value of Field is less than or equal to Value. |
"is within" | The value of Field is within Value. |
"is not within" | The value of Field is not within Value. |
"contains" | Field contains Value. |
"does not contain" | Field does not contain Value. |
"contains exactly" | Field exactly contains Value. |
Value Required String. The value to compare with the value of the field specified with Field.
Next Optional Boolean. True if Project searches down for the next occurrence of matching search criteria. False if the program searches up for the next occurrence. The default value is True.
MatchCase Optional Boolean. True if the search is case-sensitive. The default value is False.
TestID Optional Boolean.
Remarks
Using the Find method without specifying any arguments displays the Find dialog box.
Example
The following example finds the next task with highest priority.
Sub FindFirstID
Find Field:="Priority", Test:="equals", Value:="Highest"
End Sub
Applies to | Application Object
See Also | EditGoto Method | FilterEdit Method | Filters Method | FindFile Method | FindNext Method | FindPrevious Method | Replace Method | Sort Method