title: VBA - Load event code not running
body: <p>I have a very simple form that, when loaded, should create a new object <code>Thing</code> that is defined in a specific Class Module. The UF also has several buttons associated to different functions.</p>
  
  <p>This is the UF's code associate to the load event:</p>
  
  <pre><code>Option Explicit
  Private mth As Thing
  
  Private Sub UserForm_Load()
     Set mth = New Thing
     mth.Name = InputBox("Enter a name for the Thing")
  End Sub
  </code></pre>
  
  <p>If I F5 directly on this, the UF shows up but the code doesn't run furth and the <code>Thing</code> object <code>mth</code> is not even created ...</p>
  
  <p>I also tried to call the form from a module with the following code but the result was the same:</p>
  
  <pre><code>Sub test()
  
   Dim uf As Object
   Set uf = New Dinamico 'this is the name of the UserForm
   Load uf
  
  End Sub
  </code></pre>
  
  <p>As result, I would like that each time that the form is loaded, a new <code>mth</code> was created and an InputBox asking for the name appeared. I have the feeling to be missing something very stupid...could you help me out please ? </p>