Bekijk de onderstaande video om te zien hoe je onze site als een web app op je startscherm installeert.
Opmerking: Deze functie is mogelijk niet beschikbaar in sommige browsers.
Private Sub ComboBox1_Change()
With Sheets("Blad1")
If .AutoFilterMode Then .AutoFilterMode = False
End With
End Sub
Private Sub ComboBox2_Change()
With Sheets("Blad1").Range("A3:Z" & Sheets("Blad1").Cells(Rows.Count, 1).End(xlUp).Row)
If .Parent.AutoFilterMode Then .Parent.AutoFilterMode = False
.AutoFilter 1, ComboBox1.Value
.AutoFilter 3, ComboBox2.Value
'.autofilter 3, application.proper(combobox2.value) 'hoort bij Ned. versie van .List
End With
End Sub
Private Sub UserForm_Initialize()
Sheets("Blad1").Unprotect "3300AP"
With Sheets("Blad1")
If .AutoFilterMode Then .AutoFilterMode = False
sn = .Range("a4:a" & .Cells(Rows.Count, 1).End(xlUp).Row)
For i = 1 To UBound(sn)
If InStr(1, naam, "|" & sn(i, 1), vbTextCompare) = 0 Then naam = naam & "|" & sn(i, 1)
Next i
ComboBox1.List = Split(Mid(naam, 2), "|")
'ComboBox2.List = [index(text(30*row(1:12), "mmmm"),)] 'Engelse maandnamen
'ComboBox2.List = [index(text(30*row(1:12),"[$-413]mmmm"),)] 'Ned, maar zonder hoofdletter.
ComboBox2.List = Application.GetCustomListContents(4)
End With
End Sub
Private Sub ComboBox1_Change()
With Sheets("Blad1").Range("A3:Z" & Sheets("Blad1").Cells(Rows.Count, 1).End(xlUp).Row)
If .Parent.AutoFilterMode Then .Parent.AutoFilterMode = False
.AutoFilter 1, ComboBox1.Value
.AutoFilter 3, "<>"
End With
End Sub
sn = .Range("a4:a" & .Cells(Rows.Count, 1).End(xlUp).Row)
For i = 1 To UBound(sn)
If InStr(1, naam, "|" & sn(i, 1), vbTextCompare) = 0 Then naam = naam & "|" & sn(i, 1)
Next i
ComboBox1.List = Split(Mid(naam, 2), "|")
If .Parent.AutoFilterMode Then .[COLOR="#FF0000"]Parent.AutoFilterMode = False[/COLOR]
.AutoFilter 1, ComboBox1.Value
.AutoFilter 3, ComboBox2.Value
We gebruiken essentiële cookies om deze site te laten werken, en optionele cookies om de ervaring te verbeteren.