title: Limit number of digits after comma in textbox
body: <p>I have a textbox in userform which will be filled only with digits, commas, or dots. I know how to restrict use of only those characters. My question is it possible to limit filling value to 2 digits after coma/dot?</p>
  
  <p>So when I enter value like: <code>1023,456</code> it would not let me type <code>6</code> without any action.</p>
  
  <p>Editted:<br>
  I can't get this... I tried testing codes given here: <a href="https://stackoverflow.com/questions/1014284/regex-to-match-2-digits-optional-decimal-two-digits">Regex to match 2 digits, optional decimal, two digits</a> However it matches too many things. When I type more then 2 digits after comma it still matches as good string. I used for example: </p>
  
  <p><code>\d{0,2}(\,\d{1,2})?</code> <br>
  <code>[0-9]?[0-9]?(\,[0-9][0-9]?)?</code></p>
  
  <p>What I am doing wrong?</p>
  
  <pre><code>Private Sub netto_Change()
  
  Dim regEx As New VBScript_RegExp_55.RegExp
  
  regEx.Pattern = "\d{0,2}(\,\d{1,2})?"
  
  If regEx.Test(netto.Value) = True Then MsgBox ("It works!")
  
  End Sub
  </code></pre>
  
  <p>Edit 2:<br>
  Okay, I am really close I got this code: <code>^[0-9]+[\,\.]?[0-9]?[0-9]$</code> but one thing is missing. This pattern should also apply to string like: <code>321,</code> with comma\dot at the end but without anything after that.<br></p>
  
  <p>What to do?</p>