ich möchte ein Datum mittels VBA-Code in eine Zahl umwandeln. Jedes Datum hat ja eine dazugehörige fortlaufende Zahl z.B. ist dem 20.09.2005 die Zahl 38615 zugeordnet.
Danke für Eure Hilfe
Sub tst()
Dim dd As Date, ii As Long
dd = Date
MsgBox "1: " & dd + 1
MsgBox "2: " & CLng(dd + 2)
MsgBox "3: " & CLng(dd) + 3
ii = dd + 4
MsgBox "4: " & ii
End Sub