My Task: I have a userform that has various Checkboxes on it. The user should check/uncheck those boxes and press the "Done" button once finished. The pressing of "Done" should initiate an array and fill it with string values according to the code. So far, so good.
My Problem: However, because I need the array in another module, it has to be public. I have declared it public like seen below in the my code. However, it errors. What am I doing wrong?
Thanks!
Option Base 1
Public dimArray(5, 4) As String
Private Sub cmdBtn_Done_Click()
Unload ProductDimension
'1st Dimension
If chk_AbilityOfInteraction = True Then
dimArray(1, 1) = "Functionality"
dimArray(1, 2) = "Ability of interaction"
End If
If chk_Performance = True Then
dimArray(1, 1) = "Functionality"
dimArray(1, 3) = "Performance"
End If
....
End Sub