hi,
I have SAP file and I`m counting number of row in one order, example:
[TABLE="width: 500"]
<tbody>[TR]
[TD]A[/TD]
[TD]1[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]1[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]1[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]B[/TD]
[TD]1[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]1[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]C[/TD]
[TD]1[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]1[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]1[/TD]
[/TR]
</tbody>[/TABLE]
I have code:
How to count row number for A, B and C?
Result should be:
A=3
B=2
C=3
Please help
I have SAP file and I`m counting number of row in one order, example:
[TABLE="width: 500"]
<tbody>[TR]
[TD]A[/TD]
[TD]1[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]1[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]1[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]B[/TD]
[TD]1[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]1[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]C[/TD]
[TD]1[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]1[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]1[/TD]
[/TR]
</tbody>[/TABLE]
I have code:
Code:
For i = 2 To lastrow
If SAP_WS.Range("A" & i).Value <> "" Then
row_wynik = row_wynik + 1
ws.Cells(row_wynik, 1).Value = SAP_WS.Cells(i, 1)
ws.Cells(row_wynik, 2).Value = SAP_WS.Cells(i, 2)
End If
Next i
How to count row number for A, B and C?
Result should be:
A=3
B=2
C=3
Please help