In the VBA editor you can go to Tools-References and add a reference to, for instance, the Excel library.
However, if you open your file on a computer with a different version of Excel, you will see that some libraries are missing and the one you need is not in the list. Can you solve this...