我想使用C#创建一个DLL,然后可以按以下方式从VBA中调用 -
Private Declare Function invokePath Lib "\\shared_computer\Projects\somedll\myDLL.dll" (ByVal strUName As String, ByVal strSFile As String) As String
这个想法是,如果DLL的路径被更改,我只需要更新Private Declare函数行中的路径即可...
我已经搜索了很多,也不确定是否可能实现这种安排 - 我们是否可以在不引用或注册的情况下从网络路径调用DLL函数。