G
Guest
I'm attempting to use the API Calendar from Mr Leban's site
Below is my execution code, I get a "By Ref Argument error" on the 2nd parm
of the function call. I followed the instructions exactly. Any ideas?
Private Sub butSetTarget_DblClick(Cancel As Integer)
' Uses Calendar Window
Dim dteFrom, dteTo As Date
dteFrom = Date
dteTo = 0
If ShowMonthCalendar(mc, dteFrom, dteTo) Then
MsgBox dteFrom
End If
End Sub
Below is my execution code, I get a "By Ref Argument error" on the 2nd parm
of the function call. I followed the instructions exactly. Any ideas?
Private Sub butSetTarget_DblClick(Cancel As Integer)
' Uses Calendar Window
Dim dteFrom, dteTo As Date
dteFrom = Date
dteTo = 0
If ShowMonthCalendar(mc, dteFrom, dteTo) Then
MsgBox dteFrom
End If
End Sub