Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
Remove Reference from VBA Projects
I was trying to remove missing references from VBA Projects. For example,
this is the code I use if I want to remove "Microsoft ActiveX Direct Object 2.7 Library" The error message I got is "Programmatic access to Visual Basic Project is not trusted". Could anybody help me out? Thanks a lot! --------------------------------------------------------------------- Sub removeRef() Dim Wkb As Workbook Set Wkb = ThisWorkbook With Wkb.VBProject.References .Remove (msado15.dll) End With End Sub ---------------------------------------------------------------------- |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
How do I remove VBA projects in Excel | Excel Discussion (Misc queries) | |||
Remove a Reference | Excel Programming | |||
Add Remove DLL reference in VB | Excel Programming | |||
How to become a better programmer, post college. More projects or less projects. | Excel Programming | |||
Remove a reference | Excel Programming |