pasan
Terugkerende gebruiker
- Lid geworden
- 6 nov 2010
- Berichten
- 1.110
Hallo
waarom krijg ik van de 7 textbox waarden alleen de waarde van de laatste textbox in de listbox1?
waarom krijg ik van de 7 textbox waarden alleen de waarde van de laatste textbox in de listbox1?
Code:
Private Sub CommandButton4_Click()
ActiveSheet.Unprotect Password:=""
Application.ScreenUpdating = False
With [blad1!Bk1].CurrentRegion
For I = 1 To 7
With [blad1!BL1].CurrentRegion
.AutoFilter 2, Me("Txtdatum" & I).Text
.Copy [blad1!BT2].End(xlUp)
.AutoFilter
End With
Next
With [blad1!BT2].CurrentRegion
ListBox1.List = .Value
.ClearContents
End With
End With
Application.ScreenUpdating = True
ActiveSheet.Protect Password:=""
End Sub