Einfach anpassen:
01.12.2017 12:29:56
RPP63
Modul Modul1
Option Explicit
Dim Birthday As String
Sub RPP()
Birthday = "Aktuelle Geburtstage:" & vbLf & String(80, "-") & vbLf
Ausgabe Format(Date, "dd. mmmm")
Ausgabe Format(Date + 3, "dd. mmmm")
Ausgabe Format(Date + 7, "dd. mmmm")
Birthday = Birthday & vbLf & "Nächste Geburtstage:" & vbLf & String(80, "-") & vbLf
MsgBox Birthday
Birthday = vbNullString
End Sub
Sub Ausgabe(Heute As String)
Dim Fund As Range, firstAddress As String
Set Fund = Tabelle1.Columns(2).Find(Heute, , xlValues, xlWhole)
If Not Fund Is Nothing Then
firstAddress = Fund.Address
Do
Birthday = Birthday & _
Fund.Offset(0, -1) & vbTab & vbTab & Fund.Offset(0, 1) & ", " & vbTab & Fund.Offset(0, 2) & vbLf
Set Fund = Tabelle1.Columns(2).FindNext(Fund)
Loop While Not Fund Is Nothing And Fund.Address <> firstAddress
End If
Set Fund = Nothing
End Sub
Gruß Ralf