Getting a Compile error: method or data member not found when trying to initialize a calendar box from a user form. The error is at Me.Calendar.Value = Date
I believe it worked on 32 bit but we switched to 64 bit. I tried googling and a post said use Monthview but I couldn't get it to work. Any ideas how to get this to work? Is it a reference issue?
Private Sub btnCancel_Click()
' Close form on Cancel
Unload Me
End Sub
Private Sub UserForm_QueryClose(Cancel As Integer, CloseMode As Integer)
' Close form on exit (x-button)
If CloseMode = 0 Then Unload Me
End Sub
Private Sub UserForm_Initialize()
' Start form on today's date
Me.Calendar.Value = Date
datePickerValue = 0
End Sub
Private Sub Calendar_DateClick(ByVal DateClicked As Date)
' Set variable to date selected on calendar
datePickerValue = DateClicked
' Close calendar after date selected
Me.Hide
Unload Me
End Sub