The code does assume you have data on at least one worksheet. If none
have data on them then it will error on trying to delete the last
sheet.
So import your data then run the macro
--
tony h
------------------------------------------------------------------------
tony h's Profile:
http://www.excelforum.com/member.php...o&userid=21074
View this thread:
http://www.excelforum.com/showthread...hreadid=552065