我可以从vba宏运行c#代码吗?
是否可以在VBA中包含某种库,使我能够使用我编写的c函数?您需要使用我可以从vba宏运行c#代码吗?,c#,vba,C#,Vba,是否可以在VBA中包含某种库,使我能够使用我编写的c函数?您需要使用[ComVisible]属性向COM公开托管代码 有关详细信息,请参阅 编辑:例如: [ComVisible(true)] public class MyClass { public int GetNumber(string name) { ... } } 您需要使用ComVisible属性。 这里有一个请给我看一些代码,而不是给我链接你点击链接了吗?
[ComVisible]
属性向COM公开托管代码
有关详细信息,请参阅
编辑:例如:
[ComVisible(true)]
public class MyClass {
public int GetNumber(string name) { ... }
}
您需要使用
ComVisible
属性。
这里有一个请给我看一些代码,而不是给我链接你点击链接了吗?