Skip to content Skip to sidebar Skip to footer

Python: Autofill Cells In Excel According To A Formula In Previous Cells

Using Python and win32com: I have a formula in an Excel file, at cells A5:A54. I'm trying to fill the cells A55:A61 with values according to the same formula. I searched online and

Solution 1:

Try

from win32com.constants import xlFillDefault
....
xlSheet_to_final.Range("A53:A54").AutoFill(xlSheet_to_final.Range("A53:A61"), xlFillDefault)

Post a Comment for "Python: Autofill Cells In Excel According To A Formula In Previous Cells"