I am having 20 text boxes in a userform (my Mainform), In each "KeyPress" event of the text box, I am calling a "Monthview Calendar" that is in another userform and what I wanted is when I click on the calendar, the value should go to that active text box... How can I do that?
[vba]
Private Sub MonthView1_DateClick(ByVal DateClicked As Date)
frmMain.ActiveControl.Value = calendar.MonthView1.Value
Me.Hide
End Sub
[/vba]