I am writing some data into an Excel file, but I dont know how to adjust the code in order to be able to control which sheet I am writing into:
wb = load_workbook(filename)
active_ws = wb.active
Instead of wb.active
, how can I say something like Sheets('Data')
(this is how the VBA syntax would look like...)?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…