I write dll on c #
using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Runtime.InteropServices; using System.Text; using System.Threading.Tasks; namespace TextToMDB { public class TextToMDB { private static bool chekComa(string arg) { if (arg.IndexOf(",")>0) { return false; } else { return true; } } [ComVisible(true)] public static void RemoveTab() { string text = File.ReadAllText(@"c:\Мои документы\333.txt"); if ( chekComa(text)) { text = text.Replace("\t",","); File.WriteAllText(@"c:\Мои документы\333.txt", text); } } } }
but I cannot get to the method from the vba code, when I access RemoveTab I get a message
can't find dll entry point


set myObj = CreateObject("Ваш класс")andmyObj.RemoveTaband in this way it is impossible. The class must be additionally registered in the system (rules of published COM objects). - nick_n_a