The code should be in an ordinary module and not ThisOutlookSession and there must not be another macro with the same name in the project. Outlook can be fussy with macro code. You will probably need to digitally sign the project for the code to work - see
http://www.gmayor.com/create_and_emp...gital_cert.htm
The code adds (1), (2) etc to the filename if it exists in the target location.