"You've used the ListIndex property incorrectly" message



"You've used the ListIndex property incorrectly" message

Any idea what causes this message to come from code:

Me!lstReplace.ListIndex = i

i is a long
the value of i is within the listcount
I only get this error sometimes, not every time.
.