I need to include various dll, olb, and tlb files with a VBA application I have created for Business Objects. This works fine on my PC because the files are already there. When I move it to a user's PC, however, and I attempt to run the function CreateWorkspace from the DAO360.dll library, I receive the error in the subject heading. I have included the application extensions with the application, but still run across this error.
I check to make sure the references are there using:
For Each lref_Ref In Application.VBE.ActiveVBProject.References
If lref_Ref.IsBroken Then
ls_RefPath = CStr(lref_Ref.FullPath)
Application.VBE.ActiveVBProject.References.AddFromFile (ls_RefPath)
End If
Next
but this does not help with the problem.
Any ideas?
Thanks.
-TJLMO
I check to make sure the references are there using:
For Each lref_Ref In Application.VBE.ActiveVBProject.References
If lref_Ref.IsBroken Then
ls_RefPath = CStr(lref_Ref.FullPath)
Application.VBE.ActiveVBProject.References.AddFromFile (ls_RefPath)
End If
Next
but this does not help with the problem.
Any ideas?
Thanks.
-TJLMO