I have tried everything but not being successful, this is my code to copy from sheet A to sheet B, I don’t know what to add to make it work:
JavaScript
x
4
1
for row in range(6, 136):
2
c = ws.cell(row=row, column=2)
3
ws2.cell(row=row-1, column=2, values=c.value)
4
Advertisement
Answer
JavaScript
1
8
1
n = 5 #row to star writing
2
for row in range(6,137):
3
c = ws.cell(row = row, column = 2)
4
5
if c.value is not None:
6
ws2.cell(row = n, column = 2 , value = c.value)
7
n += 1 #increment to write skiping blank cells
8