many thanks rob for the code. works as said. robtillaart, thanks for pointing that out. i will post the updated file soon.