A
Aaron Queenan
I can call Range::Find from VBA - it works correctly, and requires only one
argument.
When I call it from C++, the function either throws an exception, or causes
a "Stack Corruption" error.
I am calling it with the following syntax:
Excel::_WorksheetPtr pWorksheet = Wb->Sheets->Item[1];
Excel::RangePtr pRangeSearch = pWorksheet->Cells;
Excel::RangePtr pRangeCurrent = pRangeSearch->Find("MKV", _variant_t(),
_variant_t(),
_variant_t(), _variant_t(), Excel::xlNext, _variant_t(),
_variant_t());
Is there anything I'm doing wrong?
Thanks,
Aaron Queenan.
argument.
When I call it from C++, the function either throws an exception, or causes
a "Stack Corruption" error.
I am calling it with the following syntax:
Excel::_WorksheetPtr pWorksheet = Wb->Sheets->Item[1];
Excel::RangePtr pRangeSearch = pWorksheet->Cells;
Excel::RangePtr pRangeCurrent = pRangeSearch->Find("MKV", _variant_t(),
_variant_t(),
_variant_t(), _variant_t(), Excel::xlNext, _variant_t(),
_variant_t());
Is there anything I'm doing wrong?
Thanks,
Aaron Queenan.