title: Change label text with a button click in VBA
body: <p>I'm new to VBA and I have the following code :</p>
  
  <pre><code>Private Sub CommandButton3_Click()
  CommandButton2.Enabled = False
  
  Dim x As Integer
  
  For x = 1 To 14
      Me.Controls("textbox" &amp; x).Value = ""
  Next x
  
  Application.DoEvents
  
  
  'Probleeeeeeeeem
  
  Me.Label8.Text = ""
  Me.Label9.Text = ""
  Me.Label10.Text = ""
  Me.Label11.Text = ""
  Me.Label12.Text = ""
  Me.Label13.Text = ""
  
  End Sub
  </code></pre>
  
  <p>The labels text (from 8 to 13) have already some values generated by another piece of code. How can I change those values to a void string with a <code>CommandButton3_Click()</code> ?
  I tried <code>Application.DoEvents</code>and <code>Me.Refresh</code> but In vain, here is the error message I get :</p>
  
  <p><a href="https://i.stack.imgur.com/PRBK7.png" rel="nofollow noreferrer">Error message</a></p>
  
  <p>Thank you</p>