Without seeing the macro code it would be difficult to determine what the problem is. Is there a specific error you are getting or is it just not working? Does the code highlight or somehow mark duplicates, move them to a different sheet/book, or delete them? Is the duplicated value a single column or the entire row?
I did reply and give a simple sample for determining duplicates requiring a sheet to be sorted but if this goes across spreadsheets and can have duplicates appearing randomly throughout you'd have to set up an array for storing unique values to test against. It may still help give you some ideas, so take a look:
http://p2p.wrox.com/topic.asp?TOPIC_ID=59953
Hope this helps. If what is needed is more involved or dynamic then the specifics need to be clearly outlined/specified.