I am trying to create code to represent a form document using VBA in Word 2007. I have created classes to represent Section, QuestionSet and Question.
So I have 15 Secti
Try this simple example:
Private Sub CommandButton1_Click()
Dim masterCollection As New collection
masterCollection.Add "first key", createDetailCollection()
masterCollection.Add "second key", createDetailCollection()
masterCollection.Add "third key", createDetailCollection()
End Sub
The follow function return a initializated collection
Function createDetailCollection()
Dim collection As New collection
createCollection = collezioneBuy
End Function