in the following piece of code, VBA tells me that boundary has to be a constant on the Dim vals(1 To boundary) As Variant line. This is the first time I see this. What's happening here ?
Dim boundary As Integer
boundary = distrib.Count
Dim vals(1 To boundary) As Variant
For i = 1 To boundary
vals(i) = distrib(i, 3) + distrib(i, 4)
Next i
distrib is an array declared as variant