Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

It seems like you are using excelpy. You can use column number instead of column letter so loop variable i can be used directly. I.e.

x1.set_range(2,i+1,zip(*MWflowCase)

The line circuit number is written in the first column in your example. First column is number 1 so first case should be written in the second column. Hence, use i+1 in the code above.