title: Error in Excel/VB function: "Constant expression required"
body: <p>I'm new at VB and I'm having a hard time doing something that should be very simple.</p>
  
  <p>I'm trying to make an array of n+1 length and I keep getting "Constant expression required" when running the following code</p>
  
  <pre><code>Function binomial(n As Integer, p As Double)
  Dim probabilities(0 To n) As Double
  End Function
  </code></pre>
  
  <p>I understand that the arguments used to build the array must be constants, but do I create one from the argument of the function?</p>
  
  <p>Thank you in advance</p>