It sounds like you have the code in a different spreadsheet to the one
on which you want to operate - but I would have thought you had noticed
that.
You could check using activeworkbook.name and thisworkbook.name but
again I would have thought you would have noticed this.
Regards
--
tony h
------------------------------------------------------------------------
tony h's Profile:
http://www.excelforum.com/member.php...o&userid=21074
View this thread:
http://www.excelforum.com/showthread...hreadid=507142