Hallo,
ich hab' da was aus LS; ist aber nicht auf meinem Mist gewachsen
, ist aus 'nem Lehrgang (c by R. Krappweis)
Sub Set_CalendarDateTime_HDays (uidoc As NotesUIDocument)
Dim doc As NotesDocument
Set doc = uidoc.Document
Dim DateList () As Variant
Dim Tag As Variant
Dim AnzahlTage As Integer
Dim i As Integer
Dim j As Integer
AnzahlTage = doc.EndDate(0) - doc.StartDate(0)
Dim tmpDate As Variant
Dim wd As Integer
For i = 0 To AnzahlTage
tmpDate = doc.StartDate(0) + i
wd = Weekday(tmpDate)
If (wd > 1) And (wd < 7) Then '-- Falls Wochentag (Mo - Fr)
Redim Preserve DateList(j)
DateList(j) = tmpDate
j = j + 1
End If
Next
doc.CalendarDateTime = DateList
doc.HDays = j
End Sub