title: VBA: how to null a Variant?
body: <p>I have the following Variant:</p>
  
  <pre><code>Dim comboitems() As Variant
  </code></pre>
  
  <p>that I use in all the code as an array that contains the values of a <code>ComboBox</code> control.</p>
  
  <p>In a certain point of the code, I need to clear/empty/null <code>comboitems()</code>. How can I do? I tried all of the following options without any success.</p>
  
  <pre><code>comboitems = ""
  comboitems = Null
  comboitems = Nothing
  Set comboitems = ""
  Set comboitems = Null
  Set comboitems = Nothing
  comboitems() = ""
  comboitems() = Null
  comboitems() = Nothing
  Set comboitems() = ""
  Set comboitems() = Null
  Set comboitems() = Nothing
  </code></pre>
  
  <p>The error that I get is this:</p>
  
  <p><a href="https://i.stack.imgur.com/Vs5B3.jpg" rel="noreferrer"><img src="https://i.stack.imgur.com/Vs5B3.jpg" alt="enter image description here"></a></p>