that's typical case when you use late binding. You do not have references to right object
or you have not access or library with activex objects used in your project
Try to check if in references you had a Missing caption.
If I not caught you, then visualize it to paste som pictures with that problem.
Regards