summaryrefslogtreecommitdiff
path: root/wizards/source/formwizard/tools.xba
diff options
context:
space:
mode:
Diffstat (limited to 'wizards/source/formwizard/tools.xba')
-rw-r--r--wizards/source/formwizard/tools.xba3
1 files changed, 2 insertions, 1 deletions
diff --git a/wizards/source/formwizard/tools.xba b/wizards/source/formwizard/tools.xba
index e715b07b9547..d19512bb0aa2 100644
--- a/wizards/source/formwizard/tools.xba
+++ b/wizards/source/formwizard/tools.xba
@@ -204,7 +204,8 @@ Dim i as Integer
Dim MaxIndex as Integer
Dim ResCount as Integer
ResCount = 0
- For i = o To MaxIndex
+ MaxIndex = Ubound(BigArray())
+ For i = 0 To MaxIndex
If SearchItem = BigArray(i) Then
ResCount = ResCount + 1
End If