Hallo an alle.
Ich habe folgendes Makro:
Dim StartDate As Date, EndDate As Date
With Application
StartDate = CDate(.InputBox(Prompt:="enter startdate mm/dd/yyyy", Type:=2))
EndDate = CDate(.InputBox(Prompt:="enter enddate mm/dd/yyyy", Type:=2))
MsgBox StartDate & vbCrLf & EndDate
End with
End sub
Ich möchte, dass wenn kein Wert in StartDate oder Enddate eingetragen wird das Makro mit einer msgbox beendet wird :/
Wie mache ich das?
|