title: Restrict what someone types in a textbox
body: <p>Here's what I want to do and I have a problem.
  I want to restrict what an user types in certain textboxes. I want to leave him type only numbers but after 3 numbers to add a ";". (eg. 007;123;003;005;).</p>
  
  <p>The problem is that my textbox Controls are generated through a bunch of code. So I can't or I don't know how to set an action to these controls.</p>
  
  <p>The code I'm using to generate the controls is:</p>
  
  <pre><code>Set cControl = form.Controls("io" &amp; masina).Add(
      "Forms.Label.1", "lreper" &amp; l &amp; pagina, True) 
  
  With cControl 
      .Caption = "Reper" 
      .Width = 35 
      .Height = 9 
      .Top = 25 + k 
      .Left = 5 
  End With
  </code></pre>
  
  <p>Any ideas?</p>
  
  <p>Thanks a lot!</p>