D
Dominique Schroeder
Hi,
I'm trying to display a calendar that shows me a filtered view for items as
of 01/01/2004.
I thought the following code would achieve this but it doesn't work. It
still lists all entries including those after 01/01/2004.
Any advise is appreciated.
thanks,
Dominique
Public Sub DisplayLast2Weeks()
Dim oFolder As Object
Dim oItems As Object
Set oFolder = Application.GetNamespace("MAPI").GetDefaultFolder(9)
Set oItems = oFolder.Items
oItems.Restrict ("[Start] < '01/01/2004'")
oItems.Parent.Display
Set oCalendarFolder = Nothing
Set oFolder = Nothing
End Sub
I'm trying to display a calendar that shows me a filtered view for items as
of 01/01/2004.
I thought the following code would achieve this but it doesn't work. It
still lists all entries including those after 01/01/2004.
Any advise is appreciated.
thanks,
Dominique
Public Sub DisplayLast2Weeks()
Dim oFolder As Object
Dim oItems As Object
Set oFolder = Application.GetNamespace("MAPI").GetDefaultFolder(9)
Set oItems = oFolder.Items
oItems.Restrict ("[Start] < '01/01/2004'")
oItems.Parent.Display
Set oCalendarFolder = Nothing
Set oFolder = Nothing
End Sub