I\'m writing an Excel macro in VBA to send emails to library patrons alerting them of overdue materials. The data comes from a spreadsheet with data like
Use
Per my comment I would use a collection. Here is how you define it and initialize it
Public book_list As Collection
'intitalize the collection in the constructor of the class
Private Sub Class_Initialize()
Set book_list = New Collection
End Sub
and to use it
book_list.Add
dim bk as Book
set bk = book_list.Item(indexNumber)