Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 7
Default VBA Library References - deployment issue

Hi,

I have the followinf issue:
When I create a macro that uses dediczted Library references and that I
save it in a xla file then I have issues for deployment because the
library references still refer to the old directory I had on my
development PC.

How can I make sure (automatically) that the References point to the
libraries in the correct deployment directory ?

Thanks,
Chris

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 97
Default VBA Library References - deployment issue

Hi there again Christophe,

If the library references you use are pointing to DLL:s that have been
correctly deployed and then registered the references will point to the
DLL:s. Excel is fetching the information about the DLL locations from the
Windows Registry.

What problems do you get? What is not working correctly? Have you checked
the that the registry contains the correct information?

Cheers,
/MP

" wrote:

Hi,

I have the followinf issue:
When I create a macro that uses dediczted Library references and that I
save it in a xla file then I have issues for deployment because the
library references still refer to the old directory I had on my
development PC.

How can I make sure (automatically) that the References point to the
libraries in the correct deployment directory ?

Thanks,
Chris


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default VBA Library References - deployment issue

the problem is that my users do not have the rights on their PCs to register
the dll.

So I tried to force to 'register' and to point to the dll by using in the
macro code:

Application.VBE.ActiveVBProject.References.AddFrom File
Application.UserLibraryPath\mydll.dll

but it does not work


"Mat P:son" wrote in message
...
Hi there again Christophe,

If the library references you use are pointing to DLL:s that have been
correctly deployed and then registered the references will point to the
DLL:s. Excel is fetching the information about the DLL locations from the
Windows Registry.

What problems do you get? What is not working correctly? Have you checked
the that the registry contains the correct information?

Cheers,
/MP

" wrote:

Hi,

I have the followinf issue:
When I create a macro that uses dediczted Library references and that I
save it in a xla file then I have issues for deployment because the
library references still refer to the old directory I had on my
development PC.

How can I make sure (automatically) that the References point to the
libraries in the correct deployment directory ?

Thanks,
Chris




  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 97
Default VBA Library References - deployment issue

"Club Internet" wrote:

the problem is that my users do not have the rights on their PCs to register
the dll.


OKay, that's obviously a problem. And if your users have not been granted
Administration privileges you can't do very much about that -- if that's the
rule at their company then that's teh way it's going to be. I would recommend
that you don't try to hack it... Hacks are unlikely to work properly anyways.

I really think you should try to do it the proper way, i.e., let your users'
Administrator install the application for them. (The Administrator may enable
normal users to install applications, but it's probably not very likely to
happen. But if you want to know more about this, google for e.g. "Elevated
Privileges")

So I tried to force to 'register' and to point to the dll by using in the
macro code:

Application.VBE.ActiveVBProject.References.AddFrom File
Application.UserLibraryPath\mydll.dll

but it does not work


No

"Mat P:son" wrote in message
...
Hi there again Christophe,

If the library references you use are pointing to DLL:s that have been
correctly deployed and then registered the references will point to the
DLL:s. Excel is fetching the information about the DLL locations from the
Windows Registry.

What problems do you get? What is not working correctly? Have you checked
the that the registry contains the correct information?

Cheers,
/MP

" wrote:

Hi,

I have the followinf issue:
When I create a macro that uses dediczted Library references and that I
save it in a xla file then I have issues for deployment because the
library references still refer to the old directory I had on my
development PC.

How can I make sure (automatically) that the References point to the
libraries in the correct deployment directory ?

Thanks,
Chris





Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
macro deployment - References DLL issue [email protected] Excel Programming 7 June 2nd 06 10:44 AM
Object Library References Fox via OfficeKB.com Excel Programming 0 May 25th 06 07:49 PM
Library references Amanda[_5_] Excel Programming 1 January 6th 04 06:40 PM
Object Library References Nelson[_5_] Excel Programming 5 December 10th 03 08:54 PM
Object Library References Nelson[_6_] Excel Programming 1 December 10th 03 03:31 AM


All times are GMT +1. The time now is 02:50 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"