title: How to cast a VBA String as Object type
body: <p>I am programming VBA. An interface I need to use here accepts arguments only if they are type "object". To use it I need to fill a string like "abc" into that variable. This always brings something like typemismatch.</p>
  
  <pre><code>dim varName as Object 
  Set varName = "My Text"
  </code></pre>
  
  <p>same  problem when running </p>
  
  <pre><code>dim varName as Object 
  varName = "My Text"
  </code></pre>
  
  <p>I haven't found any conversion and have no idea how to solve</p>