HSV
Inventaris
- Lid geworden
- 18 jul 2008
- Berichten
- 20.949
- Office versie
- Bèta Insider Office 365
Code:
Private Sub Userform_Initialize()
i = 2
rw = 1
With ListBox1
.Clear
.ColumnCount = 4
.ColumnWidths = "70;40;60;50"
For j = 0 To 3
.AddItem
.List(0, j) = Cells(j + 3, 1).Value
Next
Do Until Cells(2, i).Value = ""
If Month(Cells(2, i)) = Range("B1").Value Then
.List(rw, 0) = Format(Cells(3, i), "€ ###,###.00")
.List(rw, 1) = Format(Cells(4, i), "0%")
.List(rw, 2) = Cells(5, i).Value
.List(rw, 3) = Cells(6, i).Value
rw = rw + 1
End If
i = i + 1
Loop
End With
End Sub
Laatst bewerkt: