Hi Charlie,
I am trying to use ws._styles['A1'] = copy(ws._styles['A2']) but I get the below error:
AttributeError: 'Worksheet' object has no attribute '_styles'
Statement used in my code:
ws1._styles['E2'] = copy(ws1._styles['D2'])
The style that I want to copy is:
I have a cell with date in format 'DD-MM-YYYY'.
Using Excel's Custom Format Cell option, this cell displays only 'DD-MMM' whereas the formula bar show entire 'DD-MM-YYYY'.
I want to copy this same style to a new cell where I will be adding the current date.
If there is some other way to achieve this then it would be a great help.
Thanks in advance.
Parth Karia