Belleke
Well-Known Member
First question
I have this
This works, but instead of using this code 24 times (for 24 comboboxes), i am looking for some code Like
Second question
I have this code (works) but it should only work for the cell that changes
Now i get 3 or more MsgBoxes when the cell value meets the criteria
I have this
Code:
Private Sub ComboBox1_Click()
Range(ComboBox1.LinkedCell).Offset(0, -2).Select
End Sub
Code:
For each combobox in worksheet ...
I have this code (works) but it should only work for the cell that changes
Now i get 3 or more MsgBoxes when the cell value meets the criteria
Code:
Private Sub Worksheet_Calculate()
Dim rng As Range, cell As Range
Set rng = Range("J12:J22")
For Each cell In rng
If cell.Value > cell.Offset(0, -1).Value Then MsgBox "Snelheid te hoog!", vbOKOnly
End If
Next cell
End Sub