Hello everyone.
I'll start with the credits; there's a really useful calendar code here:
VBA Express : Excel - Userform Calendar Control
Everything works fine, this part right here triggers it whenever I touch a cell with that format:
But I actually want it to show up whenever the user tries to write something on the cell instead of showing up everytime I touch it. How can I do that without messing it up?
Thank you all in advance.
I'll start with the credits; there's a really useful calendar code here:
VBA Express : Excel - Userform Calendar Control
Everything works fine, this part right here triggers it whenever I touch a cell with that format:
Code:
Private Sub Worksheet_SelectionChange(ByVal Target As Range)
Dim DateFormats, DF
DateFormats = Array("dd/mm/yy;@", "mmmm d yyyy")
For Each DF In DateFormats
If DF = Target.NumberFormat Then
If CalendarFrm.HelpLabel.Caption <> "" Then
CalendarFrm.Height = 191 + CalendarFrm.HelpLabel.Height
Else: CalendarFrm.Height = 191
CalendarFrm.Show
End If
End If
Next
End Sub
But I actually want it to show up whenever the user tries to write something on the cell instead of showing up everytime I touch it. How can I do that without messing it up?
Thank you all in advance.