Need to read the work point here A - E, open to point time, this has been read out,
for I in range (table. Nrows) : If (len (table cell (I, 0). The value) & gt; 30) & amp; (i> 1) : For w in range (table. Nrows) : H=I + w If (h> I) & amp; (len (table cell (h, 0) value) & lt; 11) & amp; (len (table cell (h, 0) value) & gt; 3) & amp; (len (table cell (h, 0). The value).=6) : Table. The cell (h, 0). The value If a table cell (h, 1). The value is' : 1, table. The cell (h) value=https://bbs.csdn.net/topics/table.cell (h - 1, 2). The value Print the table cell (h, 0). The value + "" + table. The cell (h - 1, 2). The value Ws. Write (h, 0, table cell (h, 0) value) Ws. Write (h, 1, table cell (h - 1, 2). The value) Wb. Save (' ls a.x) The else: Print the table cell (h, 0). The value + "" + table. The cell (h, 1). The value Ws. Write (h, 0, table cell (h, 0) value) Ws. Write (h, 1, table cell (h, 1). The value) Wb. Save (' ls a.x)
However, how to read the right number of total work? Form in excel location is not fixed, the program through the blue string localization to form, And the total Numbers of work where a column is not fixed, this how take out 1,5,15,34,110 this data?
CodePudding user response:
List all the data I read Table. Col_values (I)
Read a grid Table. The cell (Col, Row). The value the value of the
CodePudding user response:
Get off work combined to which columns
CodePudding user response:
Look for the "total number of work" which is in the cell, and then the cell may account for more than one column, so in this sideways to find rows, until find a number that is the "1,5,15,34,110" after