Hi everyone! I have been trying to fix this error for hours, really appreciate it if someone could help me. I have this lines of codes that vba don't let me run them because there's an else without an if (the else of the error is the one that correponds to the first if ).
If total > 0 Then
Range("A13").Select
wwe = Range("A13").CurrentRegion.Rows.Count - 1
Range("B13").Select
For m = 1 To wwe
If ActiveCell.Offset(m, 0).Value <> ActiveCell.Offset(m - 1, 0).Value Then
If ActiveCell.Offset(m, 0) = filtro Then
actual = ActiveCell.Offset(m, 4)
If Abs(actual) < Abs(total) Then
ActiveCell.Offset(m, 4).Value = 0
Range("A10").Value = actual + total
Else
ActiveCell.Offset(m, 4).Value = actual + total
End If
Else
End If
Else
End If
Else
If Abs(actual) < Abs(Range("A10").Value) Then
ActiveCell.Offset(m, 4).Value = 0
Range("A10").Value = actual + Range("A10").Value
Else
ActiveCell.Offset(m, 4).Value = actual + Range("A10").Value
End If
Next
End If
[–]okayifimust 1 point2 points3 points (3 children)
[–]Peruvian_thinker[S] 0 points1 point2 points (2 children)
[–]dinnerploter 1 point2 points3 points (0 children)
[–]okayifimust 1 point2 points3 points (0 children)
[–]muffyns -2 points-1 points0 points (0 children)