title: A Simple C# DLL - how do I call it from Excel, Access, VBA, VB6?
body: <p>I have a simple class library written in c#.</p>
  
  <pre><code>using System;
  namespace TestDll
  {
      public class Test
      {
          public string HelloWorld
          {
              get
              {
                  return "Hello World";
              }
          }
      }
  }
  </code></pre>
  
  <p>My question is how can I call this HelloWorld function from Microsoft Office Visual Basic (which I think is VB6)?</p>
  
  <p>My first step was to add the DLL as a reference - but on browsing and selecting the compiled DLL the message "Can't add a reference to the specified file." was thrown.</p>
  
  <p>Can anyone point me in the right direction as to why/how to get this working?</p>
  
  <p>Thanks in advance SO!</p>