Hi
I have had a quick look and found a one or to probs (vMatrix is a two dimensioanal array?, and you need a NEW key word in the Entries declaration) for which I have suggested some mod as follows
Class Clode
Code:
Option Explicit
Private Entries As New Collection
Private mAcctNo As String
Private mDebit As Integer
Private mCredit As Integer
Public Sub Main(data As Variant)
Dim i As Integer
For i = 1 To UBound(data, 1)
AddEntry i, data
Next i
End Sub
Private Sub AddEntry(index As Integer, entry As Variant)
Dim Je As JournalEntry
Set Je = New JournalEntry
Je.acctNo = entry(index, 1)
Je.Debit = entry(index, 2)
Je.Credit = entry(index, 3)
Entries.Add Je
End Sub
Public Property Let acctNo(val As String)
mAcctNo = val
End Property
Public Property Let Credit(val As Integer)
mCredit = val
End Property
Public Property Let Debit(val As Integer)
mDebit = val
End Property
This is all a bit incestuous having a collection of 'Journal' Class objects in the 'Journal' class definition ??
Also, the object properties are Write only (no GET Properties) and the Entries collection isn't visible at all, so how are you going to use them ?
Hope this makes sense and helps!!
MTB