Question : Need help creating .NET dll or tlb for Excel 2003 VBA to use

I want to create a simple dll in vb.net express and access it from VBA in EXCEL 2003. I have registered the dll with regasm.exe /tlb. I can now add a reference to setjob.tlb in Excel vba

simple example code

Public class1
     public sub helloworld()
          msgbox "helloworld"
    end sub
end class

The vba object browser shows the class1 but not the sub helloworld

I have tried using declare and lib with similar results. Not able to find sub name....

How do I create a consumable .net 3.5 dll for excel2003 to use?

Answer : Need help creating .NET dll or tlb for Excel 2003 VBA to use

Random Solutions  
 
programming4us programming4us