How to create excel add-in (excel 2003 or previous version) package with activeX dll?

早过忘川 提交于 2019-12-02 17:32:27

问题


I am new to excel add-in prgramming and I am having a existing excel add-in project need to modify.

The plug-in has 2 parts, one is programmed in VB and compiled into a ActiveX DLL file, the other part is inside the excel as an add-in.

I already modified the source code of the DLL and recompiled a new DLL, but I don't know what is the correct way to re-package the 2 parts into one excel add-in package and give to my colleagues.

I tried to remove the reference to old DLL from excel, but it seems I could not do that, it will always be there and I can't really remove it.

This add-in is for excel 2003 or previous version, not for excel 2007.

thanks a lot for your help!


回答1:


Welcome to DLL Hell!

You'll have to remove the reference to the old dll.

Have a look at: regsvr32

  1. Close Excel
  2. Click Start / Run / cmd
  3. Type regsvr32 /u [path of old dll]/[filename]
  4. Then regsvr32 [path of new dll]/[filename]

Eg: regsvr32 /u c:\windows\system32\file.dll

You can add /q to hide all messages

How do you repackage it for your colleagues? There are multiple ways. Create a bat file and email it, put it as part of the logon script. Or go to each workstation and manually do it



来源:https://stackoverflow.com/questions/1575863/how-to-create-excel-add-in-excel-2003-or-previous-version-package-with-activex

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!