Hello. How can I modify the code to show the date calendar when clicking on several cells? Now it only appears when clicking on cell b4. I want it to appear when clicking on cells b4:b100
VBA Code:
Private Sub Worksheet_selectionChange(ByVal Target As Range)
Dim UnJour As Date
If Target.Address = "$B$4" Then
Application.EnableEvents = False
Cancel = True
UnJour = FormCal.Calendrier
If UnJour <> 0 Then
Target = Format(UnJour, "mm/dd/yyyy")
Else
Target = ""
End If
Selection.Offset(1, 0).Select
Application.EnableEvents = True
End If
End Sub