Are you looking for drop in code or need help with the conceptual approach? If the latter, you might get better response if you had some specific questions where you are stuck.

VBAhack