workbook = Workbook()
worksheet = workbook.worksheets[0]
worksheet.title = 'Sheet1'
worksheet.cell('A1').style.alignment.wrap_text = True
worksheet.cell('A1').value = """Line 1
Line 2
Line 3"""
workbook.save('wrap_text1.xlsx')
Writing multi-line strings into cells using openpyxl