You attempted to use ReDim to change the number of elements in an array of constant size. Arrays declared as dynamic, or arrays within Variant variables can be temporarily locked.
To correct this error
Array Function | Dim Statement | ReDim Statement | Set Statement | Private Statement | Public Statement