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 VenA()
Dim ar, arl, j As Long, t As Long, sr As Long, c00 As String
ar = Sheets("data").ListObjects(1).DataBodyRange
sr = 7
With Sheets("Planlijst")
.Range("A" & sr & ":M43").ClearContents
For j = 1 To UBound(ar)
If ar(j, 5) = .Range("C1").Value And ar(j, 26) = "D" And ar(j, 25) = "DUS" Then
c00 = c00 & j & "|"
t = t + 1
End If
Next j
.Cells(sr, 2).Resize(t, 10) = Application.Transpose(Application.Index(ar, Split(c00, "|"), Application.Transpose(Array(1, 28, 29, 30, 31, 6, 6, 7, 12, 3))))
With .Cells(sr - 1, 1).CurrentRegion
.Sort .Cells(1, 2), , .Cells(1, 7), , , , , xlYes
For j = .Rows.Count To 3 Step -1
If .Cells(j, 2) <> .Cells(j - 1, 2) Then .Cells(j, 2).EntireRow.Insert
Next j
End With
End With
End Sub
Sub VenA()
' verwijderen rijen 7 tem 160
Rows("7:160").Select
Selection.delete Shift:=xlUp
Range("C14").Select
'opbouwen planlijst
Range("C1").Select
Selection.Copy
Range("A6").Select
ActiveSheet.Paste
Dim ar, arl, j As Long, t As Long, sr As Long, c00 As String
ar = Sheets("data").ListObjects(1).DataBodyRange
sr = 7
With Sheets("Planlijst")
.Range("A" & sr & ":M200").ClearContents
For j = 1 To UBound(ar)
If ar(j, 5) = .Range("C1").Value And ar(j, 26) = "D" And ar(j, 25) = "DUS" Then
c00 = c00 & j & "|"
t = t + 1
End If
Next j
.Cells(sr, 2).Resize(t, 12) = Application.Transpose(Application.Index(ar, Split(c00, "|"), Application.Transpose(Array(1, 28, 29, 30, 31, 9, 6, 7, 12, 3, 18, 8))))
With .Cells(sr - 1, 1).CurrentRegion
.Sort .Cells(1, 2), , .Cells(1, 7), , , , , xlYes
For j = .Rows.Count To 3 Step -1
If .Cells(j, 2) <> .Cells(j - 1, 2) Then .Cells(j, 2).EntireRow.Insert
Next j
End With
End With
End Sub
We gebruiken essentiële cookies om deze site te laten werken, en optionele cookies om de ervaring te verbeteren.