Hi, I have this simple Excel add-in project based on the standard VS template, however, I cannot call the below test() function from Excel VBA.
\[Guid("9E88FA9A-4E7D-4bba-8D94-439BFA2B0AEC")\]
\[ClassInterface(ClassInterfaceType.AutoDual)\]
\[ComVisible(true)\]
public class MyFunctions
{
public void test()
{
Microsoft.Office.Interop.Excel.Application xlsApp = new ApplicationClass();
Worksheet ws = (Worksheet)xlsApp.ActiveSheet;
ws.Cells\[1, 1\] = "Edited by C#";
}
Please help, Thanks.