Below is using "openpyxl" to create a new sheet in an excel workbook.
import openpyxl
wb=openpyxl.load_workbook("Example_Excel.xlsx")
wb.create_sheet("Sheet1")
If the sheets or workbook do not exist yet you will get an error, to avoid this
import openpyxl
wb=openpyxl.load_workbook("Example_Excel.xlsx")
try:
wb["Sheet1"]
except:
wb.create_sheet("Sheet1")
Depending on how you want to use it below is an example of writing info to multiple pages
import openpyxl
work_book = 'Example_Excel.xlsx'
sheets = "Sheet1","Sheet2","Sheet3","Sheet4","Sheet5"
for current_sheet in sheets:
wb=openpyxl.load_workbook(work_book)
#if the sheet doesn't exist, create a new sheet
try:
wb[current_sheet]
except:
wb.create_sheet(current_sheet)
#wait for user to press "Enter" before starting on next sheet
raw_input("Press Enter to continue...")
#The code for you wish repeated for each page
#This example will print the sheet name to "B2" cell on that sheet
cell ="B"+str(2)
sheet=wb[current_sheet]
sheet[cell].value= current_sheet