sheet.AttachDispatch(sheets.get_Item(_variant_t("sheet1")), true);//获取sheet1区域,当然也可以获取sheet2等等 range.AttachDispatch(sheet.get_Cells(), true);//获取sheet1的所有单元格 range.AttachDispatch(range.get_Item(COleVariant((long)1), COleVariant((long)1)).pdispVal); //获取A1 vResult ...