For instance:
//omitted
vector<_bstr_t> cellData;
Excel::_WorksheetPtr pSheet = application->ActiveSheet;
Excel::RangePtr pRange = application->Cells;
_bstr_t cellValue = pRange->Item[1][1]; //single cell
cellData.push_back(cellValue);
//omitted
Without:
- MFC
- ATL
Question:
- How to copy, multiple cells, for instance A1:B1, into the vector?
- Is there a more appropriate method, instead of Item?