Hi Trevor,
Thank you for given link.
I try to search and found the following stuff.
1. To get a list of all available references of a excel VBA project Regardless on whether they are selected or not.
Reference : https://social.msdn.microsoft.com/Fo...t?forum=isvvba
and
https://www.experts-exchange.com/que...A-project.html
The result is as shown in the next picture
Reference_list.JPG
2. To get the list of all active (ticked on) reference Use the following code (Thank you for Robert, Trebor76, who sent me the code written by John Walkenbach).
I modify a bit for print the outcome on range A1.
3. To set a reference programmatically use the following code (reference: https://social.msdn.microsoft.com/Fo...forum=exceldev)
4. As a test I did the following.
-ticked off almost all references, just left the one in use
Before_Running_Macro.JPG
-running the following macro
-See the change on on the list
After_Running_Macro.JPG
Regards,
Benny
Bookmarks