Abgesehen von allem was Norbert und Bernhard schon gesagt haben ist die Struktur deines Codes auch noch ziemlich uneben. Das Befüllen des Feldes kann man eleganter und nur mit einer Schleife machen.
Function ListeFuellen(source As NotesUIDocument)
If source.EditMode = True Then
Dim s As New NotesSession
Dim db As Notesdatabase
Dim view As NotesView
Dim Doc As NotesDocument
Dim KeyDoc As NotesDocument
Dim Feld As NotesItem
Dim arr() as string
Set db = s.CurrentDatabase
Set view = db.GetView("Personal - " & source.FieldGetText("Bereich"))
Set keydoc = view.GetFirstDocument
set doc = source.document
Set feld = new notesitem(doc,"ArrPersNr")
redim arr(viewAllEntries.count) as string
For i = 1 To view.AllEntries.Count
arr(i)= Keydoc.GetItemtext("PersNr")
Set keydoc = view.GetNextDocument(keydoc)
Next i
feld = doc.replaceitemvalue("ArrPersNr";arr)
ListeGefüllt = True
End If
End Function