I have 7 excel sheets in one workbook and I am trying to copy and paste the data from each excel sheet into my final sheet. the code below creates the final sheet called 'Final Sheet' but does not copy any of the data from each sheet. I need a loop to go through each sheet and copy and paste the data into the final sheet but don't know how to do it.
Sheet 1 = North America, Sheet 2 = Japan, Sheet 3 = China etc
`#create final list sheet
open = openpyxl.load_workbook(filepath)
ws2 = open.create_sheet('Final List') # this creates the final sheet
open.save(filepath)`
`#put data into final list
wb = openpyxl.load_workbook(filepath)
sheet1 = open.get_sheet_by_name('North America')
finalListSheet = open.get_sheet_by_name('Final List')
wb.save(filepath)`
JavaScript questions and answers, JavaScript questions pdf, JavaScript question bank, JavaScript questions and answers pdf, mcq on JavaScript pdf, JavaScript questions and solutions, JavaScript mcq Test , Interview JavaScript questions, JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)