VBA引用.Net类库

.Net作出的dll不一样于AxtiveX,若是VBA须要引用.Net的类库,则须要将其转化成COM.blog


详见:https://msdn.microsoft.com/zh-cn/library/zsfww439.aspxio


设置:asm

Properties-Compile,勾选 Register for COM interop.引用


在其余机器上注册:im

打开Visual studio Command Prompt  ,进入dll所在目录执行如下语句:
static

regasm XXX.dll /tlb:XXX.tlb /CodeBase

见:http://kangfc.blog.163.com/blog/static/10096313200822705443570/
top



版权声明:本文为博主原创文章,未经博主容许不得转载。img

相关文章
相关标签/搜索