Adding references with the code requires that "programmatic access to the VBA project" be enabled. By default it is turned off.
Therefore vloneboy says:
Quote Originally Posted by vloneboy View Post
It doesn't work unfortunately
Artik