I wont to check a xls file for a row with all value 0
if so the row must be deleted
waths wrong with this code and what does the bold command need to be
thx
if so the row must be deleted
waths wrong with this code and what does the bold command need to be
thx
Code:
Dim rij As Integer = -1
Dim kol As Integer = 1
Do While rij < (MAX + 5)
Dim val() As Integer = {1, 2, 3, 4, 5}
rij = rij + 1
val(1) = .Cells(rij, kol).value
val(2) = .Cells(rij, kol + 1).value
val(3) = .Cells(rij, kol + 2).value
val(4) = .Cells(rij, kol + 3).value
val(5) = .Cells(rij, kol + 4).value
If val(1) + val(2) + val(3) + val(4) + val(5) = 0 Then
[b].rows.delete[/b]
End If
Loop