c# excel set active worksheet
Using the Sheets Collection of the Excel Workbook. Access the worksheet by using the Excel Sheets collection. To select the first worksheet in a workbook using the Sheets collection of the Excel workbook. Call the Select method of the Sheets collection to select the first worksheet of the active workbook. C#. VB. Copy. ((Excel.Worksheet)this.Application.ActiveWorkbook.Sheets[1]).Select();