Public rCallingRange As Range
Private Sub cmdCancel_Click()
Unload Me
End Sub
Private Sub cmdOK_Click()
rCallingRange.Value = mv1.Value
Unload Me
End Sub
Private Sub mv1_SelChange(ByVal StartDate As Date, ByVal EndDate As Date, Cancel As Boolean)
Call DispCurrDate(StartDate)
End Sub
Private Sub UserForm_Activate()
On Error Resume Next
mv1.Value = rCallingRange.Value
Call DispCurrDate(mv1.Value)
End Sub
Private Sub DispCurrDate(d As Date)
Me.Caption = Format(d, "d mmmm yyyy")
End Sub