Hallo,
dieser Code verliert nach dem ersten Lauf durch die While-Schleife seinen Index.
Habe ich etwas falsch gemacht
Sub Click(Source As Button)
Dim session As New NotesSession
Dim workspace As New NotesUIWorkspace
Dim db As NotesDatabase
Dim view As NotesView
Dim pruefdoc As NotesDocument
Dim Profildoc As NotesDocument
Set db = session.CurrentDatabase
Set view = db.GetView("ImportHardware")
Set ProfilDoc = db.GetProfileDocument( "(Datenbank Profil)" )
Dim entry As NotesViewEntry
Dim nav As NotesViewNavigator
Set nav = view.CreateViewNav
Set entry = nav.GetFirst
While Not entry Is Nothing
Set pruefdoc = New NotesDocument(db)
pruefdoc.Form = "Pruefdocument"
pruefdoc.KostSt = entry.ColumnValues(0)
Call pruefdoc.Save(True,True)
Set entry = nav.GetNextCategory(entry) Wend
End Sub