What error are you getting and what do you want out of this code? Without context it is hard to provide much help. Can you post a sample workbook?