Hallo zusammen,
habe das Problem jetzt folgendermaßen gelöst:
Sub Initialize
Dim session As New NotesSession
Dim db As NotesDatabase
Dim Feldstr As String
Set db = session.CurrentDatabase
Dim form As NotesForm
Set form = db.GetForm("1")
Felder = form.Fields
For i = 1 To 132
'Forall field In form.Fields
Feldstr = Felder(i)
On Error Goto Errhandle
Select Case form.GetFieldType(Feldstr)
'Select Case form.GetFieldType(field)
Case AUTHORS : fieldType = "Authors"
Case DATETIMES : fieldType = "DateTime"
Case NAMES : fieldType = "Names"
Case NUMBERS : filedType = "Number"
Case READERS : fieldType = "Readers"
Case RICHTEXT : fieldType = "Rich text"
Case TEXT : fieldType = "Text"
Case Else
fieldType = "Other " & form.GetFieldType(Feldstr)
End Select
'Messagebox fieldType,, Feldstr
Next i
'End Forall
Errhandle:
Messagebox "Anzahl der Felder:" + i,, i
Exit Sub
End Sub
Ich habe auf das Forall-Statement verzichtet, weil das ganze aus Excel heraus als Macro starte.
Gruß
Spalter