A
Alain Bourgeois
Dear all,
I would like to read outlook appointments only, and I use the following
statements to read the outlook calendar:
DStart=#11/11/2008#
dend=#12/12/2008#
sstartfield ="[Start]"
sStr = sstartfield & ">=" & Quote(FormatDateTime(DStart, vbShortDate)) & "
and " & sstartfield & "<" & Quote(FormatDateTime(dend + 1, vbShortDate))
Set objitems = objCalendar.Items.Restrict(sStr)
For Each objitem In objitems
If objitem.Class = olAppointment Then
...
Using outlook 2007 UK: appointments are correctly selected, BUT birthdays
outside the scope (eg October 27th) also appear in filter (why why why?).
Outlook calendar event appears as "contact name's birthday". It is NOT a big
problem as I can skip these entries using:
Set app = objitem
If Not app.AllDayEvent Then
...
Till here it is ok.
BUT using Outlook 2007 French: I have to change line
sstartfield="[Début]"
Appointments are correctly selected BUT anniversary's are not AllDayEvents,
so I cannot filter them.
Is there a way to have only appointments (a way which would suit all outlook
versions, as this program runs on several environments)?
Regards,
Alain
I would like to read outlook appointments only, and I use the following
statements to read the outlook calendar:
DStart=#11/11/2008#
dend=#12/12/2008#
sstartfield ="[Start]"
sStr = sstartfield & ">=" & Quote(FormatDateTime(DStart, vbShortDate)) & "
and " & sstartfield & "<" & Quote(FormatDateTime(dend + 1, vbShortDate))
Set objitems = objCalendar.Items.Restrict(sStr)
For Each objitem In objitems
If objitem.Class = olAppointment Then
...
Using outlook 2007 UK: appointments are correctly selected, BUT birthdays
outside the scope (eg October 27th) also appear in filter (why why why?).
Outlook calendar event appears as "contact name's birthday". It is NOT a big
problem as I can skip these entries using:
Set app = objitem
If Not app.AllDayEvent Then
...
Till here it is ok.
BUT using Outlook 2007 French: I have to change line
sstartfield="[Début]"
Appointments are correctly selected BUT anniversary's are not AllDayEvents,
so I cannot filter them.
Is there a way to have only appointments (a way which would suit all outlook
versions, as this program runs on several environments)?
Regards,
Alain