T
TC
Hey All,
I need to use the 'Find' method and the documentation doesn't answer a
number of questions:
-- With the 'LookAt' option, xlWhole or xlPart, whole or part of what?
-- Regarding 'What', when it says a Microsoft Excel data type, does that
mean integer, long, boolean, etc.?
-- For 'SearchFormat', what are the options for this and what do they mean?
-- When using 'MatchByte', how does one determine if double-byte support is
installed and does it matter if the flag is set (i.e. does it throw an
error) if double-byte is support is not installed?
expression.Find(What, After, LookIn, LookAt, SearchOrder, SearchDirection,
MatchCase, MatchByte, SearchFormat)
expression Required. An expression that returns a Range object.
What Required Variant. The data to search for. Can be a string or any
Microsoft Excel data type.
After Optional Variant. The cell after which you want the search to begin.
This corresponds to the position of the active cell when a search is done
from the user interface. Note that After must be a single cell in the range.
Remember that the search begins after this cell; the specified cell isn't
searched until the method wraps back around to this cell. If you don't
specify this argument, the search starts after the cell in the upper-left
corner of the range.
LookIn Optional Variant. The type of information.
LookAt Optional Variant. Can be one of the following XlLookAt constants:
xlWhole or xlPart.
SearchOrder Optional Variant. Can be one of the following XlSearchOrder
constants: xlByRows or xlByColumns.
SearchDirection Optional XlSearchDirection. The search direction.
XlSearchDirection can be one of these XlSearchDirection constants.
xlNext default
xlPrevious
MatchCase Optional Variant. True to make the search case sensitive. The
default value is False.
MatchByte Optional Variant. Used only if you've selected or installed
double-byte language support. True to have double-byte characters match only
double-byte characters. False to have double-byte characters match their
single-byte equivalents.
SearchFormat Optional Variant. The search format.
I need to use the 'Find' method and the documentation doesn't answer a
number of questions:
-- With the 'LookAt' option, xlWhole or xlPart, whole or part of what?
-- Regarding 'What', when it says a Microsoft Excel data type, does that
mean integer, long, boolean, etc.?
-- For 'SearchFormat', what are the options for this and what do they mean?
-- When using 'MatchByte', how does one determine if double-byte support is
installed and does it matter if the flag is set (i.e. does it throw an
error) if double-byte is support is not installed?
expression.Find(What, After, LookIn, LookAt, SearchOrder, SearchDirection,
MatchCase, MatchByte, SearchFormat)
expression Required. An expression that returns a Range object.
What Required Variant. The data to search for. Can be a string or any
Microsoft Excel data type.
After Optional Variant. The cell after which you want the search to begin.
This corresponds to the position of the active cell when a search is done
from the user interface. Note that After must be a single cell in the range.
Remember that the search begins after this cell; the specified cell isn't
searched until the method wraps back around to this cell. If you don't
specify this argument, the search starts after the cell in the upper-left
corner of the range.
LookIn Optional Variant. The type of information.
LookAt Optional Variant. Can be one of the following XlLookAt constants:
xlWhole or xlPart.
SearchOrder Optional Variant. Can be one of the following XlSearchOrder
constants: xlByRows or xlByColumns.
SearchDirection Optional XlSearchDirection. The search direction.
XlSearchDirection can be one of these XlSearchDirection constants.
xlNext default
xlPrevious
MatchCase Optional Variant. True to make the search case sensitive. The
default value is False.
MatchByte Optional Variant. Used only if you've selected or installed
double-byte language support. True to have double-byte characters match only
double-byte characters. False to have double-byte characters match their
single-byte equivalents.
SearchFormat Optional Variant. The search format.