I am struggling with the following using openpyxl version 3.0.7 I want to copy the style of one cell to another. That means, background colour, font, etc. However, I don't know how I can do that.
My initial idea was basically to do
sheet["E1"].font = sheet["D1"].font
.
That bit shoots out TypeError: unhashable type: 'StyleProxy'
.
Using just .style
doesn't really do all that much so it's not suitable.
I found a few solutions online like the one from here. However, I don't know how I can apply it to my specific needs seeing as I struggle to even transfer the font from one cell to another.