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.
Privacywetgeving
Het is bij Helpmij.nl niet toegestaan om persoonsgegevens in een voorbeeld te plaatsen. Alle voorbeelden die persoonsgegevens bevatten zullen zonder opgaaf van reden verwijderd worden. In de vraag zal specifiek vermeld moeten worden dat het om fictieve namen gaat.
Sub TellenMaar()
For x = 1 To 2
Select Case x
Case 1: klr = "C4"
Case 2: klr = "C5"
End Select
For i = 8 To 104
Select Case x
Case 1: Ant = Cells(1017, i).Address(0, 0)
Case 2: Ant = Cells(1018, i).Address(0, 0)
End Select
cellen = Split(Cells(13, i).Address, ":")(0) & ":" & Split(Cells(1013, i).Address, ":")(0)
On Error Resume Next
Set Rng = Range(cellen).SpecialCells(xlCellTypeConstants)
aantal = 0
If Not Rng Is Nothing Then
For Each cl In Rng
If cl.DisplayFormat.Interior.Color = Range(klr).Interior.Color And cl.DisplayFormat.Font.Color = Range(klr).Font.Color Then
If IsDate(cl.Value) And cl.Value < Date Then
aantal = aantal + 1
End If
End If
Next
End If
On Error GoTo 0
Range(Ant).Value = aantal
Set Rng = Nothing
Next i
Next x
End Sub
=SUBTOTAAL(109;H$13:H$1013)
If Not Rng Is Nothing Then
For Each cl In Rng
[COLOR="#FF0000"]If Not cl.Rows.Hidden Then[/COLOR]
If cl.DisplayFormat.Interior.Color = Range(klr).Interior.Color And cl.DisplayFormat.Font.Color = Range(klr).Font.Color Then
If IsDate(cl.Value) And cl.Value < Date Then
aantal = aantal + 1
End If
End If
[COLOR="#FF0000"]End If[/COLOR]
Next
End If
We gebruiken essentiële cookies om deze site te laten werken, en optionele cookies om de ervaring te verbeteren.