Search for an instance of a formula in a worksheet
[C++]
static HRESULT OleWorksheetFindFormula(
LPDISPATCH dispWorksheet,
LPCSTR pszSearch,
LPDISPATCH dispLastRange,
CString& strFirstAddress,
LPDISPATCH* lpdisp
);
Worksheet object.
The string to be searched for.
The range returned by the last call to OleWorksheetFindFormula(). NULL the first time the function is called.
If this string is empty, it will be filled with the first address where the search starts. On subsequent calls, it will be used as a stop marker for the search.
If the function is successful, the range containing the search string will be placed here. It is the responsibility of the caller to Release() it.
Header: xlpcom.h