Where did you put the code? The code should go into a standard module.