K
Keith
I have written a .NET component that I am wanting to
consume via VBA in Excel. During testing, I used the
regasm tool to create the COM Callable Wrapper (CCW) and
succesfully managed to implement the component in VBA on
my local machine.
Several people in the company need to access the
spreadsheet at various stages of the day, therefore my
plan is to put it (and the dll) on a network share. This
way, if I make changes to the spreadsheet or dll, I only
have to change it in one place rather than having to
update it on all users computers.
With this in mind, I have placed the spreadsheet on a
network share and registered the assembly on the server
in the same way as I mentioned above. When I open the
spreadsheet on the network share it works perfectly.
However, when I de-register the dll from my local
computer and then try to run it again, I get an error
saying "ActiveX component can't create object". This
obviously means that in spite of the spreadsheet sitting
on a network share, it is trying to access the dll on my
local computer, rather than on the server on which it is
sitting. I can only think that this has been done for
security reasons, but it doesn't help me! I need
the "network spreadsheet" to access the "network dll"
when using the spreadsheet from a remote computer.
Does anybody have any suggestions about how I can get
around this problem (if at all) because I would really
prefer not to have to register the dll on all users
machines.
Thanks!
consume via VBA in Excel. During testing, I used the
regasm tool to create the COM Callable Wrapper (CCW) and
succesfully managed to implement the component in VBA on
my local machine.
Several people in the company need to access the
spreadsheet at various stages of the day, therefore my
plan is to put it (and the dll) on a network share. This
way, if I make changes to the spreadsheet or dll, I only
have to change it in one place rather than having to
update it on all users computers.
With this in mind, I have placed the spreadsheet on a
network share and registered the assembly on the server
in the same way as I mentioned above. When I open the
spreadsheet on the network share it works perfectly.
However, when I de-register the dll from my local
computer and then try to run it again, I get an error
saying "ActiveX component can't create object". This
obviously means that in spite of the spreadsheet sitting
on a network share, it is trying to access the dll on my
local computer, rather than on the server on which it is
sitting. I can only think that this has been done for
security reasons, but it doesn't help me! I need
the "network spreadsheet" to access the "network dll"
when using the spreadsheet from a remote computer.
Does anybody have any suggestions about how I can get
around this problem (if at all) because I would really
prefer not to have to register the dll on all users
machines.
Thanks!