I have a following problem: at work i'm using excel 2003 where at home i have 2010. If i try to run file created at work, macros do not work as 2010 do not have "Microsoft Office Web Components 11.0".

To disable missing refrences i'm using following code:

Please Login or Register  to view this content.
But it doesn't remove that Web Components. Is there a way to improve this code or is there a way to declare what refrences to use and what not to use?

Thanks for your help!