Enrolling a .dll file in Excel

Joined
Jun 10, 2008
Messages
8
Reaction score
0
I have developed a program which makes use of ccrpTmr.dll file located in the folder C:\MyDocuments (which also houses the main Addin file).

I want to programmatically enroll this dll file along with the addin file when a workbook is opened.. Using

Private Sub Workbook_Open()
Application.Addins.Add("C:\MyDocuments\prjName.xla")
Addins("C:\MyDocuments\prjName.xla").Installed=True
End sub

the addin is not only enrolled in the collection but also installed (checked) in the Addins dialog box under Tools--->Addins.

For now, the dll file is manually loaded the usual way (In the VBE, Tools-->References-->Browse etc).

Any leads will be appreciated

PeterA
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top