Macro_Nerd99
Board Regular
- Joined
- Nov 13, 2021
- Messages
- 61
- Office Version
- 365
I have this code that works great to build a string. However, it sometimes creates duplicates. How do I prevent this?
VBA Code:
For Each cl In ws.Range("B4:B" & lr)
If cl.Offset(, 19).Value > imax Then
iViolations = iViolations + 1
cl.EntireRow.Interior.ColorIndex = 6
Highlighted_Trades = True
Violations_str = Violations_str & cl.Value & ","
End If
Next cl