Kunnen jullie eens uitleggen hoe je aan de juiste kleurcode komt?
Ik weet dat dit gaat via onderstaande code
Ik weet dat dit gaat via onderstaande code
Code:
arr = Array(ComboBox2.Value, CDate(TextBox2.Value), CDate(TextBox3.Value), ComboBox1.Value)
Blad2.ListObjects(1).ListRows.Add.Range.Resize(, 4) = arr
frow = Application.Match(ComboBox2.Value, Blad3.ListObjects(1).ListColumns(1), 0)
If IsError(frow) Then Blad3.ListObjects(1).ListRows.Add.Range = ComboBox2.Value
With Blad1
frow = Application.Match(ComboBox2.Value, .Range("A8", .Range("A" & .Rows.Count).End(xlUp)), 0)
If IsError(frow) Then .Range("A" & .Rows.Count).End(xlUp).Offset(1) = ComboBox2.Value
End With