How to remove object references from available references list of VBA editor permanently

tom tong 0 Reputation points
2023-05-07T00:20:53.36+00:00

I added an object reference, which is in DLL, via VBA Editor to my VBA project in Excel. It appeared on the VBA References Dialogue. Now I want to remove it from the list permanently. How can I do it?

Microsoft 365 and Office Development Other
Microsoft 365 and Office Excel For business Windows
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Tanay Prasad 2,250 Reputation points
    2023-05-09T08:41:03.7+00:00

    Hi,

    In order to remove an object reference from the VBA References Dialogue in Excel, you need to follow these steps:

    1. Open your VBA project in Excel and go to the VBA Editor.
    2. Click on the "Tools" menu and select "References" from the drop-down list.
    3. In the References Dialogue box, find the reference you want to remove and uncheck the box next to it.
    4. Click on the "OK" button to save your changes and close the References Dialogue box.

    If the reference is still listed in the References Dialogue box after unchecking the box, it may be that the DLL file containing the reference is still being used by your Excel. In this case, try closing and reopening Excel to see if the reference has been removed from the list.

    Best Regards.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.