Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I have the following snippet of code (thanks to someone here)
Public SummaryMin As Date Public SummaryMax As Date Public SummaryDate As Date Do SummaryDate = DateValue(Application.InputBox("Enter Summary Reporting Date between " & SummaryMin & " and " & SummaryMax, "Reporting Date", SummaryMin)) If Not Application.And(SummaryDate = SummaryMin, SummaryDate <= SummaryMax) Then MsgBox "Invalid date. Please re-enter" End If Loop Until Application.And(SummaryDate = SummaryMin, SummaryDate <= SummaryMax) It works fine unless I cancel. I get a RUNTIME error, type 13. Thanks, Barb Reinhardt |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
InputBox - cancel button | Excel Programming | |||
InputBox Function & Cancel | Excel Programming | |||
Help with inputbox (Distinguish OK from Cancel) | Excel Programming | |||
Clicking Cancel on an Inputbox | Excel Programming | |||
Inputbox and cancel button | Excel Programming |