public void SelectSheet(int sheetIndex, bool isActivate) { _excelSheet = (Excel._Worksheet)(_excelSheets.get_Item(sheetIndex + 1)); if (isActivate) { _excelSheet.Activate(); } }