I have created the following procedure which loads an array using Sub LoadArray.
Dim aryFunds () as Variant
Dim intCountRow as Integer
Dim intCountCol as Integer
Dim strCellContents as String
aryFunds (ArrayName)
Private Sub LoadArray (ByRef ArrayName as Variant)
For intCountRow = 1 To 5
For intCountCol = 1 To 3
strCellContents = ActiveSheet.Cells(intCountRow, intCountCol)
ArrayName(intCountRow, intCountCol) = strCellContents
Next intCountCol
Next intCountRow
End Sub
I want to keep the contents of this loaded array for usage in other subs. How do I retain the life of this array outside of the sub that loaded it?
Thanks, Numbers
Dim aryFunds () as Variant
Dim intCountRow as Integer
Dim intCountCol as Integer
Dim strCellContents as String
aryFunds (ArrayName)
Private Sub LoadArray (ByRef ArrayName as Variant)
For intCountRow = 1 To 5
For intCountCol = 1 To 3
strCellContents = ActiveSheet.Cells(intCountRow, intCountCol)
ArrayName(intCountRow, intCountCol) = strCellContents
Next intCountCol
Next intCountRow
End Sub
I want to keep the contents of this loaded array for usage in other subs. How do I retain the life of this array outside of the sub that loaded it?
Thanks, Numbers