Eric Carolus
Board Regular
- Joined
- Sep 17, 2012
- Messages
- 133
- Office Version
- 2016
- Platform
- Windows
Hi folks
I downloaded a DatePicker from Calendar Control for All Office versions - including Office 2016 64 bit (With Advanced Features) - E90E50
I have searched the literature how to restrict DatePicker entry to certain ranges (for dates). and found the following code
Option Explicit
Private Sub Worksheet_SelectionChange(ByVal Target As Range)
‘ One cell had been selected
If Selection.Count = 1 Then
If Not Intersect(Target, Range("C8:C32;H8:I32")) Is Nothing Then
‘Call MyMacro
Call Calendar1_Click
End If
End If
End Sub
My request for assistance is:
a). to restrict date picker entry to a certain range(s)
b). format other range(s) for hh:mm to prevent date entry by the DatePicker.
The formatting option of MS Excel does not work for me.
Thanks for the assistance in advance.
Eric Carolus
I downloaded a DatePicker from Calendar Control for All Office versions - including Office 2016 64 bit (With Advanced Features) - E90E50
I have searched the literature how to restrict DatePicker entry to certain ranges (for dates). and found the following code
Option Explicit
Private Sub Worksheet_SelectionChange(ByVal Target As Range)
‘ One cell had been selected
If Selection.Count = 1 Then
If Not Intersect(Target, Range("C8:C32;H8:I32")) Is Nothing Then
‘Call MyMacro
Call Calendar1_Click
End If
End If
End Sub
My request for assistance is:
a). to restrict date picker entry to a certain range(s)
b). format other range(s) for hh:mm to prevent date entry by the DatePicker.
The formatting option of MS Excel does not work for me.
Thanks for the assistance in advance.
Eric Carolus