If .ListIndex = -1 this means there is no selection
If there is no selection then .Text would be "" so Len(.Text) would be 0 and Val(0) would be zero
What do you think Val(Len(.Text)) would return as a boolean value?
__________________
Andrew Lockton
Chrysalis Design, Melbourne Australia
|