子用户窗体日历填充电子表格单元而不是在用户窗体上

我遇到了使用DTpickerdate的问题。 所以我已经添加了自己的日历popup窗口,现在当我在usereform中,然后单击日历的框或button时,它在原始电子表格(它看起来像在最后选中的单元格中)而不是我的用户表单中填充date, TextBox8。 我感到不知所措,有时它像我打算的那样工作,而其他时间则不这样做。

Private Sub Date_Button_1_Click() UserForm1.TextBox8 = ActiveCell 'this is the first calendar button & box frmCalendar.Show_Cal UserForm1.TextBox8.Value = g_sDate End Sub Private Sub TextBox8_Enter() UserForm1.TextBox8 = ActiveCell g_bForm = True frmCalendar.Show_Cal UserForm1.TextBox8.Value = g_sDate End Sub 

我相信它正在盯着我。 任何援助将是伟大的。 谢谢。