HTML beginner |
|
For X = 0 To Me.lstFactuur.ListCount - 1
ActiveCell.Value = X + 1
ActiveCell.Offset(0, 1) = Me.lstFactuur.Column(0, X)
ActiveCell.Offset(0, 2) = Me.lstFactuur.Column(1, X)
ActiveCell.Offset(0, 3) = Me.lstFactuur.Column(2, X)
ActiveCell.Offset(0, 4) = Me.lstFactuur.Column(3, X)
ActiveCell.Offset(0, 5).Formula = "=B" & X + 4 & "*D" & X + 4
ActiveCell.Offset(0, 6).Formula = "=F" & X + 4 & "+(E" & X + 4 & "*F" & X + 4 & ")"
ActiveCell.Offset(1, 0).Activate
Next X
For X = 0 To Me.lstFactuur.ListCount - 1 ActiveCell.Value = X + 1 ActiveCell.Offset(0, 1) = Me.lstFactuur.Column(0, X) ActiveCell.Offset(0, 2) = Me.lstFactuur.Column(1, X) ActiveCell.Offset(0, 3) = Me.lstFactuur.Column(2, X) ActiveCell.Offset(0, 4) = Me.lstFactuur.Column(3, X) ActiveCell.Offset(0, 5).Formula = "=B" & X + 4 & "*D" & X + 4 ActiveCell.Offset(0, 6).Formula = "=F" & X + 4 & "+(E" & X + 4 & "*F" & X + 4 & ")" ActiveCell.Offset(1, 0).Activate Next X
|