I need to add the var in array
Public Sub Testprog() Dim test As Variant Dim iCounter As Integer If test = Empty Then iCounter = 0 test(iCounter) =
You have to declare the array variable as an array:
Dim test(10) As Variant