Sub Knop4_Klikken()
Dim lRow As Long, tRow As Double
Dim sSht As Worksheet, tSht As Worksheet
Dim c As Range
Set sSht = Worksheets("Blad1")
Set tSht = Worksheets("Blad2")
lRow = tSht.Range("A" & Rows.Count).End(xlUp).Row
With tSht.Range("A1:A" & lRow)
tRow = Evaluate("Match(" & sSht.Cells(3, 6).Value & "," & .Address & ",0)")
End With
For Each c In sSht.Range("G5:G9")
If c.Value <> "" Then
tSht.Cells(tRow, c.Row - 3).Value = c.Value
End If
Next c
End Sub
tRow = Evaluate("Match(" & sSht.Cells(3, 6).Value & "," & .Address & ",0)")
Sub Knop4_Klikken()
Dim lRow As Long, tRow As Double
Dim sSht As Worksheet, tSht As Worksheet
Dim c As Range
Set sSht = Worksheets("Blad1")
Set tSht = Worksheets("Blad2")
lRow = tSht.Range("A" & Rows.Count).End(xlUp).Row
Application.ScreenUpdating = False
tSht.Select
With tSht.Range("A1:A" & lRow)
tRow = Evaluate("Match(" & sSht.Cells(3, 6).Value & "," & .Address & ",0)")
End With
For Each c In sSht.Range("G5:G9")
If c.Value <> "" Then
tSht.Cells(tRow, c.Row - 3).Value = c.Value
End If
Next c
sSht.Select
Application.ScreenUpdating = True
End Sub