I developed a user defined function in my computer and save the document as XLSM. When I distributed it to other users in my company, they get "Can't find project or library" error as long as they open the workbook and then hit "Enable Macros".
If they hit Debug
, the yellow line will fall on the head line of the user defined function, like this
Then I checked the Tools - Reference of VBE, but find nothing missing in all computers (mine and other users').
But the Reference is a little bit difference,
In my computer, it is
In other users' computer, it is
The only difference is the highlighted line. In my computer it is Microsoft office 16.0 Object Library, since I installed Project 2016 with Excel 2013. While others' are 15.0.
By the way, I get the above picture before I hit the "Enable Macro" button since once I hit it, the error message will show for infinite times and I will never be able to go into the Reference in VBE. Therefore it is possible that there will be a MISSING reference when the code is actually running.