[V8i SELECTseries 3 VBA], Cannot define a levels object with ActiveDesignFile.Levels

Hello, I am having trouble with this code to set my level object (runtime error '5')
I put here a snippet of the code:

Private Function GetFolio(ops As String)
    Dim elEnum As ElementEnumerator
    Dim el As Element
    Dim elScanCriteria As ElementScanCriteria
    Dim elLevel() As Level
    ReDim elLevel(UBound(OptionVB_CadreDecoupe))
    
    For i = 0 To UBound(OptionVB_CadreDecoupe)
        Set elLevel(i) = ActiveDesignFile.Levels(OptionVB_CadreDecoupe(i))
    Next

The error occurs on line 9.

And I put a capture of the spy tools :

any idea what I did wrong?