Script which can check if a debit has a corresponding credit
Solved/Closed
dennisvhansen
Posts
7
Registration date
Wednesday 9 September 2015
Status
Member
Last seen
24 September 2015
-
9 Sep 2015 à 07:44
dennisvhansen Posts 7 Registration date Wednesday 9 September 2015 Status Member Last seen 24 September 2015 - 24 Sep 2015 à 02:30
dennisvhansen Posts 7 Registration date Wednesday 9 September 2015 Status Member Last seen 24 September 2015 - 24 Sep 2015 à 02:30
Related:
- Debit summation meaning
- Credit summation meaning - Guide
- Vostfr meaning - Guide
- Leechers meaning - Guide
- Orange heart meaning - Guide
- Bomboclaat meaning - Guide
3 responses
Using the file you posted.
I skipped the zero values, as these would all match each other.
You can change the ranges to suite.
I skipped the zero values, as these would all match each other.
You can change the ranges to suite.
Sub finddupes()
dim found as Boolean
For Each mycell In Worksheets("Ark1").Range("B2:L34")
myvalue = Abs(mycell.Value)
If myvalue <> 0 Then
found = False
For Each chkcell In Worksheets("Ark1").Range("B2:L34")
If mycell <> chkcell Then
If myvalue = Abs(chkcell.Value) Then
chkcell.Interior.ColorIndex = 4 ' Green
mycell.Interior.ColorIndex = 4
found = True
End If
End If
Next
If found = False Then mycell.Interior.ColorIndex = 3 'Red
End If
Next
End Sub
17 Sep 2015 à 03:14
17 Sep 2015 à 03:16