diff --git a/openpyxl/workbook.py b/openpyxl/workbook.py index 10a4564..e58c424 100644 --- a/openpyxl/workbook.py +++ b/openpyxl/workbook.py @@ -92,6 +92,10 @@ def get_active_sheet(self): """Returns the current active sheet.""" return self.worksheets[self._active_sheet_index] + def set_active_sheet(self, index = 0): + """Sets active sheet to given index.""" + self._active_sheet_index = index + def create_sheet(self, index = None): """Create a worksheet (at an optional index).