I have an xla file that refers to some other Excel add-ins that may or may not be present on the target machine. Currently Excel fails on loading the xla with a "Compile error: Can't find project or library".
Code is something like:
Dim result as Integer
result = SomeAddIn.SomeFunction(x)
Prefixing this with an "On Error Goto AddInMissing" doesn't help as this is seen as a compile error.
So, is there any way of late-binding/referencing an add-in by name in VBA so that I can fail gracefully (disable certain features) if a certain add-in is not present?