Skip to content
Advertisement

python, how to fill entire row? row(i).fill = PatternFill

My code currently does this, I’m wondering if there is a shorter way to write this?

JavaScript

Advertisement

Answer

A simple loop maybe?

JavaScript

You could also move that configuration outside the loop if you’d like, that may make configuration easier:

JavaScript

Or perhaps move it into a function:

JavaScript
User contributions licensed under: CC BY-SA
7 People found this is helpful
Advertisement