update inbox display

  • Thread starter Thread starter guest
  • Start date Start date
G

guest

Hello, I am filtering the inbox items using the specified criteria but I am
not able ti FT update the inbox view with filtered items.

is there any quick way to do this??

thanks a lot!
 
Where are you filtering the items? If it's in an Items.Filter or Restrict
then that does not apply to the UI at all. You would need to filter in your
view. You can set up a filter in the customize view dialog and use that
filter as part of your view.

Depending on what version of Outlook you are supporting you can use the
Outlook 2007 View object or use the view XML in Outlook 2003.
 
Ken, thanks for your reply. I am using Items.Restrict method in outlook 2007.
Can you point me to some online resources on how to achieve this?

thanks.
 
What I usually do is to open the customize view dialog and set up the filter
I want on the Advanced tab. Then I look at the filter in the SQL tab. That
provides the filter information I want in DASL syntax, which is what views
use.

After I set up the view I use the Immediate window of the Outlook VBA
project to show the ActiveExplorer.CurrentView to get a feel for the XML
used for the view. That can be used as the basis for the View.XML to provide
a custom view in code.

If you search at www.outlookcode.com for something like "view" you'll get
lots of hits with code samples for both earlier versions of Outlook as well
as for Outlook 2007 and its new view objects.
 
Back
Top