vba Dll
来源:互联网 发布:儿歌大全软件 编辑:程序博客网 时间:2024/06/05 10:11
原网址:http://blog.sina.com.cn/s/blog_4aee288a0100d15q.html
Today I have met some problems on specifying a relative path into a excel vba header, linking a dll.You must specify a absolute one instead of the relative path.
For example:
Declare Function LoadProject Lib "C:\Program Files\AccessHist.dll" (ByVal projectpath As String) As Boolean
At last I found the solution, just put the dll in the same folder as the xls file and in the Workbook_open() function put the following:
chdrive(thisworkbook.path)
chdir(thisworkbook.path)
You can linking the dll like this way:
Declare Function LoadProject Lib "AccessHist.dll" (ByVal projectpath As String) As Boolean
- vba Dll
- vba visa32.dll
- vba 调用 dll
- VBA调用C/C++ DLL
- C++ Dll 供 vba 和 R调用
- VBA 64 32 调用dll的区别
- [分享]DLL文件制作与在VBA调用初级进阶
- [分享]DLL文件制作与在VBA调用初级进阶
- DLL文件制作与在VBA调用初级进阶
- VBA中调用dll文件的路径问题
- VBA中代码加载引用(Reference DLL)方法实践
- 在dll文件中调用VBA的命令
- vba
- vba
- vba
- vba
- VBA
- vba
- poj2002
- Linux中的通配
- 持续集成的那点事儿
- libgdx为何去掉了Action类中的setCompletionListener
- 实现Time类的运算符重载
- vba Dll
- Error on initialization of server mk-worker (stormconf.ser is missing)
- HDU 1198(并查集)
- 杭电2628
- 导航控制器UINavigationController和选项卡栏控制器UI...
- redisDB内存结构
- 数控学习
- asdasdasdsad
- mysql sql语句