When I run the following code to install a VBA reference library I get a "Can't Enter Break Mode at This Time" error. Can someone please help me in understanding how to prevent this error, or a provide a error piece of code to install a VBA reference. Thank you.
Code:
Sub Add_Ref()
Application.VBE.ActiveVBProject.References.AddFromFile "C:\Program Files\Microsoft Office\Office12\MSPPT.OLB"
End Sub