title: Using a C# dll inside EXCEL VBA
body: <p>I am running into a little problem here and need you guys' help.</p>
  
  <p>I have a C# DLL exposed through COM interop. It is working alright, but apparently the deployment of C# interop object is a disaster and you need to regasm every time you update the DLL.</p>
  
  <p>So I am wondering how I can use the functions from this C# DLL like the following:
  Or anything that I can call the functions by just putting the DLL and the spreadsheet together.</p>
  
  <pre><code>Declare Function getString Lib "&lt;PATH of my DLL&gt;" () as string
  
  sub test()
     range("A1").value = getString
  End Sub
  </code></pre>
  
  <p>Syntax might be wrong.</p>