LearnMeExcel
Well-known Member
- Joined
- Aug 11, 2009
- Messages
- 746
- Office Version
- 365
- 2021
- Platform
- Windows
hi
in my Userform i have 3 textBoxes
project_name
Date_From
Date_To
when calendar activate in Date_From
i whave this code
the problem is
when Calendar form activate in Date_To
what is the code to insert calendar date in it
in my Userform i have 3 textBoxes
project_name
Date_From
Date_To
Code:
Private Sub Project_name_AfterUpdate()
Date_From.SetFocus
CalendarForm.Show
End Sub
Private Sub Date_From_AfterUpdate()
Date_To.SetFocus
CalendarForm.Show
End Sub
i whave this code
Code:
Private Sub Calendar1_KeyDown(KeyCode As Integer, ByVal Shift As Integer)
If KeyCode = 13 Then
ProjectOfrm.Date_From.Value = Calendar1.Value
End If
Unload Me
End Sub
when Calendar form activate in Date_To
what is the code to insert calendar date in it