C
Composer
I have a slightly modified Appointment form, with a button. The VBS
code behind the button passes the intrinsic Item object to a VBA
subroutine that's within ThisOutlookSession.
My problem is in using the Item object as an Outlook.AppointmentItem.
Within VBA, I find that:
currentItem.Class = olAppointment
TypeName(currentItem) = "AppointmentItem"
but...
(TypeOf currentItem Is Outlook.AppointmentItem)
... is False!
and...
Dim appt As Outlook.AppointmentItem
Set appt = currentItem
... causes Type Mismatch
Can someone please tell me what I'm doing wrong? Thanks.
code behind the button passes the intrinsic Item object to a VBA
subroutine that's within ThisOutlookSession.
My problem is in using the Item object as an Outlook.AppointmentItem.
Within VBA, I find that:
currentItem.Class = olAppointment
TypeName(currentItem) = "AppointmentItem"
but...
(TypeOf currentItem Is Outlook.AppointmentItem)
... is False!
and...
Dim appt As Outlook.AppointmentItem
Set appt = currentItem
... causes Type Mismatch
Can someone please tell me what I'm doing wrong? Thanks.