'load component 'outlook.dll'
'add object pimcollection called 'pimcol'
'and appointment called 'appointment'
'add control 'listbox1'
Sub Globals
'Declare the global variables here.
End Sub
Sub App_Start
Form1.Show
PimCol.New1("Appointments")
Appointment.New1
mydate="11/25/2007"
DateFormat("mm/dd/yyyy")
i = 0
Do
Appointment.Value = PimCol.GetItem(i)
i = i + 1
If myDate= Date(Appointment.Start)Then
listbox1.Add(Appointment.subject) 'collect to a control listbox1
End If
Loop While i < PimCol.Count
End Sub