I think there is a way around it, Dennis, but unfortunately I am on holiday now and don't have access to my books and whatnot (just a poor, underpowered laptop). I'll see what I can find out.
>John,
>
>Sorry, I missed one important point that is the error is only occured when the excel worksheet has password protected. Therefore when EXCEL prompt me to enter the password, if I input the wrong password, press cancel/ok, the error will be occured. If in the case, how can I only the record down the filename and error message, and the program will still processing.
>
>
>Thanks
>
>Dennis
------------------------------------------------
John Koziol, ex-MVP, ex-MS, ex-FoxTeam. Just call me "X"
"When the going gets weird, the weird turn pro" - Hunter Thompson (Gonzo) RIP 2/19/05