Hello everybody!
I am pretty new to vba but I am trying to learn step by step.
My question is: is there a way to extract n elements of a one-dimensional array?
For example, I created this array (mazzo):
Function GeneraMazzoCarte() As Long()
Dim mazzo(1 To 40) As Long, i As Long
For i = 1 To 40
mazzo(i) = i
Next
GeneraMazzoCarte = mazzo
End Function
Is there a way to extract, for example, the first 7 elements of it?
Thank you all for help!
I am pretty new to vba but I am trying to learn step by step.
My question is: is there a way to extract n elements of a one-dimensional array?
For example, I created this array (mazzo):
Function GeneraMazzoCarte() As Long()
Dim mazzo(1 To 40) As Long, i As Long
For i = 1 To 40
mazzo(i) = i
Next
GeneraMazzoCarte = mazzo
End Function
Is there a way to extract, for example, the first 7 elements of it?
Thank you all for help!