I'm trying to add a calendar function in word 2010, through VBA. I used regedit to register the mscal since it is not incl. in the office package.
I have made a txtbox for the date to be added from the frmCalendar, but can't get it to work.
When I push the command button I get a run-time error 424 in line no. 3. Here is my code for that button:
Private Sub cmdDate_Click()
Me.txtDate.Text = frmCalendar.Calendar1.Value
' now unload
Private Sub cmdClose_Click()
Private Sub UserForm_Initialize()
If IsDate(ActiveCell.Value) Then
Calendar1.Value = DateValue(ActiveCell.Value)
Calendar1.Value = Date
Private Sub Calendar1_Click()
I have used this code in excel before and it works fine there. Is it not possible to use this in word?