Open the VBA editor with Alt + F11.
Select the project for your document in the left hand pane.
From the VBA menu, choose, Tools > References...
Look in the list to see which of the references are flagged as 'MISSING'.
You can then uncheck the item, but the macro code is unlikely to work unless you can import the relevant file.