I\'m tryign to change the text alignment to the center of 2 merged sells, I\'ve found some answers that didn\'t work for my case
currentCell = ws.cell(\'A1\') cu
yes, there is a way to do this with openpyxl:
from openpyxl.styles import Alignment currentCell = ws.cell('A1') #or currentCell = ws['A1'] currentCell.alignment = Alignment(horizontal='center')
hope this will help you