Context
Got a variable Output that contains text mentioned below. However, I want to insert each Output line on each A-row in Excel. How do I do this?
Output
- Text 1
- Text 2
- Text 3
Current Code
# Open Workbook
wb = load_workbook('Fortimail-config.xlsx')
ws = wb.active
# Create a workbook sheet name.
sheet = wb['Sheet']
sheet.cell(row=1, column=1).value = output
wb.save("Fortimail-config.xlsx")
What I get
- A1 = Text 1 Text 2 Text 3
What I want
- A1 = Text 1
- A2 = Text 2
- A3 = Text 3