Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I have a dynamic range set to a column with varying dates over a varying
number of rows. I am asking the user to select a date with a related form. I need the user to select a date from the calendar control which appears in th dynamic range. Not within the Min / Max of the range but an exact match. My Calendar control is named Calendar1 how can I make sure the user picks a date in the range? Thank you for any help. Rob |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi Rob,
Something like this Private Sub Calendar1_Click() Dim mtch mtch = Application.Match(CLng(Calendar1.Value), Worksheets("Sheet1").Range("A1:A1000"), 0) If IsError(mtch) Then MsgBox ("Invalid date") End If End Sub -- HTH Bob Phillips "Robert Hargreaves" wrote in message ... I have a dynamic range set to a column with varying dates over a varying number of rows. I am asking the user to select a date with a related form. I need the user to select a date from the calendar control which appears in th dynamic range. Not within the Min / Max of the range but an exact match. My Calendar control is named Calendar1 how can I make sure the user picks a date in the range? Thank you for any help. Rob |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Convert date from Gregorian Calendar to Hijri Calendar | Excel Discussion (Misc queries) | |||
How to link an Excel file due date to Outlook calendar date? | New Users to Excel | |||
how do i ensure people use the right date format in excel? | Excel Worksheet Functions | |||
have a date cell pop up a monthly calendar to choose a date | Excel Worksheet Functions | |||
how to convert julian date to regular calendar date | Excel Worksheet Functions |