For example, if there is a code like this:
Dim x as ClassX
Set x = New ClassX
sometimes it can be replaced with:
Dim x as Object
Set x = CreateObject("ClassX")
The latter does not need a reference to the library that contains ClassX, and the rest of the code will run even if the library is not present.
Maybe you can use this approach in your case.