Populating VBA dynamic arrays April 18, 2023 by Tarik in your for loop use a Redim on the array like here: For i = 0 to 3 ReDim Preserve test(i) test(i) = 3 + i Next i