[ACCEPTED]-Array already dimensioned - Class module-ms-word
Accepted answer
Private Paragraphs(0) As ...
This is not an empty array, rather it is 3 a fixed length array with 1 element.
For a dynamic array - one you 2 will later redimension - just declare it 1 as:
Private Paragraphs() As ...
Dim numbers(10) As Integer
MsgBox (UBound(numbers))
ReDim numbers(4)
MsgBox (UBound(numbers))
Above code will throw array-already-dimensioned.
we 1 can do like
ReDim numbers(10) As Integer
MsgBox (UBound(numbers))
ReDim numbers(4)
MsgBox (UBound(numbers))
Source:
stackoverflow.com
More Related questions
Cookie Warning
We use cookies to improve the performance of the site. By staying on our site, you agree to the terms of use of cookies.