Open the VB editor. Click Tools- Options, then select the General tab and check the 'Break in class module' option under 'Error Trapping'. Then run the code again and tell me which line is causing the error.