title: Excel VBA - Change userform height and width on click event
body: <p>In Excel 365 a userform named &quot;frmVorlage&quot; is used.</p>
  <p>A label named lblTtlMaximize is intended to change the size of the userform on click.
  This Userform starts with width = 455,25 and height = 1023,75 (set in the properties box)</p>
  <p>Following code does only change the position, but not the height neither the width:</p>
  <pre><code>Private Sub lblTtlMaximize_Click()
          frmVorlage.Height = 1080
          frmVorlage.Width = 1920
          frmVorlage.Top = 0
          frmVorlage.Left = 0
  End Sub
  </code></pre>
  <ul>
  <li>Made sure the sub is executed by putting in &quot;Debug.Print frmVorlage.Height&quot; =&gt; Shows 1080 but the actual height of the userform is not changed</li>
  <li>If i put the same code in the initialize event it works and the Userform starts with width 1920 and height 1080</li>
  <li>Me.Width and Me.Height does not work either</li>
  </ul>
  <p>I am out of ideas how to fix this, since the .Top and .Left properties are changed on click but the .Height and .Width are not...</p>