Wenn du nur das Dokument haben moechtest, auf dem sich der Select-Balken gerade befindet, sollte dir doch
set doc = db.GetDocumentByID(uiviw.CaretNoteID)
das gewuenschte Ergebnis liefern
Andreas
Dim ses As New NotesSession
Dim uiws As New NotesUIWorkspace
Dim uivw As NotesUIView
Dim uidoc As NotesUIDocument
Dim db As NotesDatabase
Dim doc As NotesDocument
'aktuelle View als UIView holen
Set uivw = uiws.CurrentView
'aktuelle Datenbank holen
Set db = ses.CurrentDatabase
'aktuelles Dokument holen
Set doc = uivw.CaretNoteID
'aktuelles Dokument zum Bearbeiten oeffnen
Set uidoc = uiws.EditDocument(True, doc)
Vielleicht hilft das ein wenig weiter.
Andreas