Hey all,

I'm trying to set a cell of an array of booleans to true. But it gives me the subscript out or range error.
VB Code:
  1. PassArr(lstFile.ListIndex) = True
  2. (lstfile.listIndex = 0 - 43)
Is the code I'm trying to use to get the cell change to true.

and in the form load section I put this
VB Code:
  1. ReDim Preserve PassArr(lstFile.ListCount)
  2. (lstFile = 43)

So I'm not sure why it gives me this error. What is the problem?