tags:

views:

48

answers:

2

is it possible to include some kind of libraries inside of VBA that will enable me to use c# functions that i wrote?

+4  A: 

You need to expose managed code to COM using the [ComVisible] attribute.

For more information, see here.

EDIT: For example:

[ComVisible(true)]
public class MyClass {
    public int GetNumber(string name) { ... }
}
SLaks
+2  A: 

You need to use the ComVisible attribute. Here's a similar question

ichiban